diff options
Diffstat (limited to 'drivers/ide/setup-pci.c')
-rw-r--r-- | drivers/ide/setup-pci.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c index 67035ba4bf5e..c88d33225cf9 100644 --- a/drivers/ide/setup-pci.c +++ b/drivers/ide/setup-pci.c | |||
@@ -872,11 +872,15 @@ void __init ide_scan_pcibus (int scan_direction) | |||
872 | * are post init. | 872 | * are post init. |
873 | */ | 873 | */ |
874 | 874 | ||
875 | list_for_each_safe(l, n, &ide_pci_drivers) | 875 | list_for_each_safe(l, n, &ide_pci_drivers) { |
876 | { | ||
877 | list_del(l); | 876 | list_del(l); |
878 | d = list_entry(l, struct pci_driver, node); | 877 | d = list_entry(l, struct pci_driver, node); |
879 | __pci_register_driver(d, d->driver.owner, d->driver.mod_name); | 878 | if (__pci_register_driver(d, d->driver.owner, |
879 | d->driver.mod_name)) { | ||
880 | printk(KERN_ERR "%s: failed to register driver " | ||
881 | "for %s\n", __FUNCTION__, | ||
882 | d->driver.mod_name); | ||
883 | } | ||
880 | } | 884 | } |
881 | } | 885 | } |
882 | #endif | 886 | #endif |