]> Git Repo - linux.git/commitdiff
ohci: Use ref-counting hotplug safe interfaces
authorAlan Cox <[email protected]>
Wed, 27 Sep 2006 22:43:22 +0000 (15:43 -0700)
committerGreg Kroah-Hartman <[email protected]>
Thu, 28 Sep 2006 22:36:43 +0000 (15:36 -0700)
We want to avoid legacy APIs like pci_find_slot().

Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: David Brownell <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/host/ohci-pci.c

index 3732db7d68eb58ed193130ff47f9aea20fc910e6..874418552789154ee73a72064e6265c299d1edbe 100644 (file)
@@ -73,13 +73,14 @@ ohci_pci_start (struct usb_hcd *hcd)
                else if (pdev->vendor == PCI_VENDOR_ID_NS) {
                        struct pci_dev  *b;
 
-                       b  = pci_find_slot (pdev->bus->number,
+                       b  = pci_get_slot (pdev->bus,
                                        PCI_DEVFN (PCI_SLOT (pdev->devfn), 1));
                        if (b && b->device == PCI_DEVICE_ID_NS_87560_LIO
                                        && b->vendor == PCI_VENDOR_ID_NS) {
                                ohci->flags |= OHCI_QUIRK_SUPERIO;
                                ohci_dbg (ohci, "Using NSC SuperIO setup\n");
                        }
+                       pci_dev_put(b);
                }
 
                /* Check for Compaq's ZFMicro chipset, which needs short 
This page took 0.05427 seconds and 4 git commands to generate.