diff options
-rw-r--r-- | arch/i386/pci/irq.c | 4 | ||||
-rw-r--r-- | arch/x86_64/kernel/pci-calgary.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/i386/pci/irq.c b/arch/i386/pci/irq.c index e65551cd8216..f2cb942f8281 100644 --- a/arch/i386/pci/irq.c +++ b/arch/i386/pci/irq.c | |||
@@ -764,7 +764,7 @@ static void __init pirq_find_router(struct irq_router *r) | |||
764 | DBG(KERN_DEBUG "PCI: Attempting to find IRQ router for %04x:%04x\n", | 764 | DBG(KERN_DEBUG "PCI: Attempting to find IRQ router for %04x:%04x\n", |
765 | rt->rtr_vendor, rt->rtr_device); | 765 | rt->rtr_vendor, rt->rtr_device); |
766 | 766 | ||
767 | pirq_router_dev = pci_find_slot(rt->rtr_bus, rt->rtr_devfn); | 767 | pirq_router_dev = pci_get_bus_and_slot(rt->rtr_bus, rt->rtr_devfn); |
768 | if (!pirq_router_dev) { | 768 | if (!pirq_router_dev) { |
769 | DBG(KERN_DEBUG "PCI: Interrupt router not found at " | 769 | DBG(KERN_DEBUG "PCI: Interrupt router not found at " |
770 | "%02x:%02x\n", rt->rtr_bus, rt->rtr_devfn); | 770 | "%02x:%02x\n", rt->rtr_bus, rt->rtr_devfn); |
@@ -784,6 +784,8 @@ static void __init pirq_find_router(struct irq_router *r) | |||
784 | pirq_router_dev->vendor, | 784 | pirq_router_dev->vendor, |
785 | pirq_router_dev->device, | 785 | pirq_router_dev->device, |
786 | pci_name(pirq_router_dev)); | 786 | pci_name(pirq_router_dev)); |
787 | |||
788 | /* The device remains referenced for the kernel lifetime */ | ||
787 | } | 789 | } |
788 | 790 | ||
789 | static struct irq_info *pirq_get_info(struct pci_dev *dev) | 791 | static struct irq_info *pirq_get_info(struct pci_dev *dev) |
diff --git a/arch/x86_64/kernel/pci-calgary.c b/arch/x86_64/kernel/pci-calgary.c index 37a770859e71..d2ea87a95268 100644 --- a/arch/x86_64/kernel/pci-calgary.c +++ b/arch/x86_64/kernel/pci-calgary.c | |||
@@ -921,7 +921,7 @@ static int __init calgary_init(void) | |||
921 | 921 | ||
922 | error: | 922 | error: |
923 | do { | 923 | do { |
924 | dev = pci_find_device_reverse(PCI_VENDOR_ID_IBM, | 924 | dev = pci_get_device_reverse(PCI_VENDOR_ID_IBM, |
925 | PCI_DEVICE_ID_IBM_CALGARY, | 925 | PCI_DEVICE_ID_IBM_CALGARY, |
926 | dev); | 926 | dev); |
927 | if (!dev) | 927 | if (!dev) |