Permalink
Browse files

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>
  • Loading branch information...
1 parent 245e371 commit db210f824c2f155703edf03bc2137da1bd76e27d Thiago Farina committed with davem330 May 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 drivers/ide/ide-scan-pci.c
@@ -88,7 +88,7 @@ static int __init ide_scan_pcibus(void)
struct list_head *l, *n;
pre_init = 0;
- while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)))
+ for_each_pci_dev(dev)
ide_scan_pcidev(dev);
/*

0 comments on commit db210f8

Please sign in to comment.