diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-12-10 10:18:53 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-10 17:55:40 (GMT) |
commit | 6451956a24963d3eb1655fd039762ae42ac48da7 (patch) | |
tree | 5432a7e8dfc0bdf3658c0f0d707b300a9351d570 /drivers/ide | |
parent | fc4fb2adf944d45a7f3d4d38df991c79ffdb6a43 (diff) | |
download | linux-fsl-qoriq-6451956a24963d3eb1655fd039762ae42ac48da7.tar.xz |
[PATCH] ide: complete switch to pci_get
The reverse get function allows the final piece of the switching for the old
IDE layer
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/setup-pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c index 0719b64..695e239 100644 --- a/drivers/ide/setup-pci.c +++ b/drivers/ide/setup-pci.c @@ -844,11 +844,11 @@ void __init ide_scan_pcibus (int scan_direction) pre_init = 0; if (!scan_direction) { - while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { + while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { ide_scan_pcidev(dev); } } else { - while ((dev = pci_find_device_reverse(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { + while ((dev = pci_get_device_reverse(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { ide_scan_pcidev(dev); } } |