mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[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>
This commit is contained in:
parent
fc4fb2adf9
commit
6451956a24
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue