diff options
Diffstat (limited to 'drivers/ide/setup-pci.c')
-rw-r--r-- | drivers/ide/setup-pci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c index 695e23904d30..a52c80fe7d3e 100644 --- a/drivers/ide/setup-pci.c +++ b/drivers/ide/setup-pci.c | |||
@@ -783,10 +783,11 @@ static LIST_HEAD(ide_pci_drivers); | |||
783 | * Returns are the same as for pci_register_driver | 783 | * Returns are the same as for pci_register_driver |
784 | */ | 784 | */ |
785 | 785 | ||
786 | int __ide_pci_register_driver(struct pci_driver *driver, struct module *module) | 786 | int __ide_pci_register_driver(struct pci_driver *driver, struct module *module, |
787 | const char *mod_name) | ||
787 | { | 788 | { |
788 | if(!pre_init) | 789 | if(!pre_init) |
789 | return __pci_register_driver(driver, module); | 790 | return __pci_register_driver(driver, module, mod_name); |
790 | driver->driver.owner = module; | 791 | driver->driver.owner = module; |
791 | list_add_tail(&driver->node, &ide_pci_drivers); | 792 | list_add_tail(&driver->node, &ide_pci_drivers); |
792 | return 0; | 793 | return 0; |
@@ -862,6 +863,6 @@ void __init ide_scan_pcibus (int scan_direction) | |||
862 | { | 863 | { |
863 | list_del(l); | 864 | list_del(l); |
864 | d = list_entry(l, struct pci_driver, node); | 865 | d = list_entry(l, struct pci_driver, node); |
865 | __pci_register_driver(d, d->driver.owner); | 866 | __pci_register_driver(d, d->driver.owner, d->driver.mod_name); |
866 | } | 867 | } |
867 | } | 868 | } |