From: Alan Cox Date: Sun, 10 Dec 2006 10:18:53 +0000 (-0800) Subject: [PATCH] ide: complete switch to pci_get X-Git-Tag: v2.6.20-rc2~85^2~94 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6451956a24963d3eb1655fd039762ae42ac48da7;p=users%2Fjedix%2Flinux-maple.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c index 0719b6484824c..695e23904d303 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); } }