summaryrefslogtreecommitdiff
path: root/drivers/ide/ide-scan-pci.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-05-22 22:08:32 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-22 22:08:32 -0700
commitd798f7f080805ad7e15fc37a43d8c6f91edb6dda (patch)
tree73e3783cb619d3a5dc40a5f32859f063b5cd0664 /drivers/ide/ide-scan-pci.c
parente98bae7592a44bdce2e49ccd64f3c7ffe244a0f6 (diff)
parentdb210f824c2f155703edf03bc2137da1bd76e27d (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide-2.6: ide/ide-scan-pci.c: Use for_each_pci_dev(). ide: Use linux/mutex.h IDE: ide-floppy, remove unnecessary NULL check drivers/ide/pmac.c: Remove unnecessary casts of pci_get_drvdata ide: fix use after free in ide-acpi
Diffstat (limited to 'drivers/ide/ide-scan-pci.c')
-rw-r--r--drivers/ide/ide-scan-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-scan-pci.c b/drivers/ide/ide-scan-pci.c
index 0e79efff1deb..c3da53e7bb2b 100644
--- a/drivers/ide/ide-scan-pci.c
+++ b/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);
/*