Commit db210f82 authored by Thiago Farina's avatar Thiago Farina Committed by David S. Miller

ide/ide-scan-pci.c: Use for_each_pci_dev().

Use for_each_pci_dev() to simplify the code.
Signed-off-by: default avatarThiago Farina <tfransosi@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 245e3718
...@@ -88,7 +88,7 @@ static int __init ide_scan_pcibus(void) ...@@ -88,7 +88,7 @@ static int __init ide_scan_pcibus(void)
struct list_head *l, *n; struct list_head *l, *n;
pre_init = 0; pre_init = 0;
while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev))) for_each_pci_dev(dev)
ide_scan_pcidev(dev); ide_scan_pcidev(dev);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment