Commit 7cd8b686 authored by Alan Cox's avatar Alan Cox Committed by Andi Kleen

[PATCH] x86: remove last two pci_find offenders in the core code

Resending as I believe the discussion about them established they were
correct.
Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent 72690a21
...@@ -764,7 +764,7 @@ static void __init pirq_find_router(struct irq_router *r) ...@@ -764,7 +764,7 @@ static void __init pirq_find_router(struct irq_router *r)
DBG(KERN_DEBUG "PCI: Attempting to find IRQ router for %04x:%04x\n", DBG(KERN_DEBUG "PCI: Attempting to find IRQ router for %04x:%04x\n",
rt->rtr_vendor, rt->rtr_device); rt->rtr_vendor, rt->rtr_device);
pirq_router_dev = pci_find_slot(rt->rtr_bus, rt->rtr_devfn); pirq_router_dev = pci_get_bus_and_slot(rt->rtr_bus, rt->rtr_devfn);
if (!pirq_router_dev) { if (!pirq_router_dev) {
DBG(KERN_DEBUG "PCI: Interrupt router not found at " DBG(KERN_DEBUG "PCI: Interrupt router not found at "
"%02x:%02x\n", rt->rtr_bus, rt->rtr_devfn); "%02x:%02x\n", rt->rtr_bus, rt->rtr_devfn);
...@@ -784,6 +784,8 @@ static void __init pirq_find_router(struct irq_router *r) ...@@ -784,6 +784,8 @@ static void __init pirq_find_router(struct irq_router *r)
pirq_router_dev->vendor, pirq_router_dev->vendor,
pirq_router_dev->device, pirq_router_dev->device,
pci_name(pirq_router_dev)); pci_name(pirq_router_dev));
/* The device remains referenced for the kernel lifetime */
} }
static struct irq_info *pirq_get_info(struct pci_dev *dev) static struct irq_info *pirq_get_info(struct pci_dev *dev)
......
...@@ -921,7 +921,7 @@ static int __init calgary_init(void) ...@@ -921,7 +921,7 @@ static int __init calgary_init(void)
error: error:
do { do {
dev = pci_find_device_reverse(PCI_VENDOR_ID_IBM, dev = pci_get_device_reverse(PCI_VENDOR_ID_IBM,
PCI_DEVICE_ID_IBM_CALGARY, PCI_DEVICE_ID_IBM_CALGARY,
dev); dev);
if (!dev) if (!dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment