Skip to content

Commit

Permalink
[PATCH] ide: complete switch to pci_get
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Dec 10, 2006
1 parent fc4fb2a commit 6451956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ide/setup-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 6451956

Please sign in to comment.