ide/ide-scan-pci.c: Use for_each_pci_dev().
Use for_each_pci_dev() to simplify the code. Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
245e37182b
commit
db210f824c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue