diff options
Diffstat (limited to 'drivers/pci/pci-driver.c')
-rw-r--r-- | drivers/pci/pci-driver.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index dd2da9b6b119..4438ae1ede4f 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c | |||
@@ -421,7 +421,8 @@ static struct kobj_type pci_driver_kobj_type = { | |||
421 | * If no error occurred, the driver remains registered even if | 421 | * If no error occurred, the driver remains registered even if |
422 | * no device was claimed during registration. | 422 | * no device was claimed during registration. |
423 | */ | 423 | */ |
424 | int __pci_register_driver(struct pci_driver *drv, struct module *owner) | 424 | int __pci_register_driver(struct pci_driver *drv, struct module *owner, |
425 | const char *mod_name) | ||
425 | { | 426 | { |
426 | int error; | 427 | int error; |
427 | 428 | ||
@@ -429,6 +430,7 @@ int __pci_register_driver(struct pci_driver *drv, struct module *owner) | |||
429 | drv->driver.name = drv->name; | 430 | drv->driver.name = drv->name; |
430 | drv->driver.bus = &pci_bus_type; | 431 | drv->driver.bus = &pci_bus_type; |
431 | drv->driver.owner = owner; | 432 | drv->driver.owner = owner; |
433 | drv->driver.mod_name = mod_name; | ||
432 | drv->driver.kobj.ktype = &pci_driver_kobj_type; | 434 | drv->driver.kobj.ktype = &pci_driver_kobj_type; |
433 | 435 | ||
434 | if (pci_multithread_probe) | 436 | if (pci_multithread_probe) |