mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ohci: Use ref-counting hotplug safe interfaces
We want to avoid legacy APIs like pci_find_slot(). Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
54bee6e1b4
commit
2e3a43f0b6
1 changed files with 2 additions and 1 deletions
|
@ -73,13 +73,14 @@ ohci_pci_start (struct usb_hcd *hcd)
|
||||||
else if (pdev->vendor == PCI_VENDOR_ID_NS) {
|
else if (pdev->vendor == PCI_VENDOR_ID_NS) {
|
||||||
struct pci_dev *b;
|
struct pci_dev *b;
|
||||||
|
|
||||||
b = pci_find_slot (pdev->bus->number,
|
b = pci_get_slot (pdev->bus,
|
||||||
PCI_DEVFN (PCI_SLOT (pdev->devfn), 1));
|
PCI_DEVFN (PCI_SLOT (pdev->devfn), 1));
|
||||||
if (b && b->device == PCI_DEVICE_ID_NS_87560_LIO
|
if (b && b->device == PCI_DEVICE_ID_NS_87560_LIO
|
||||||
&& b->vendor == PCI_VENDOR_ID_NS) {
|
&& b->vendor == PCI_VENDOR_ID_NS) {
|
||||||
ohci->flags |= OHCI_QUIRK_SUPERIO;
|
ohci->flags |= OHCI_QUIRK_SUPERIO;
|
||||||
ohci_dbg (ohci, "Using NSC SuperIO setup\n");
|
ohci_dbg (ohci, "Using NSC SuperIO setup\n");
|
||||||
}
|
}
|
||||||
|
pci_dev_put(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check for Compaq's ZFMicro chipset, which needs short
|
/* Check for Compaq's ZFMicro chipset, which needs short
|
||||||
|
|
Loading…
Add table
Reference in a new issue