diff options
-rw-r--r-- | drivers/pci/pci-driver.c | 6 | ||||
-rw-r--r-- | include/linux/pci.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 309629e03bae..b1c0c707d96c 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c | |||
@@ -421,7 +421,11 @@ int __pci_register_driver(struct pci_driver *drv, struct module *owner) | |||
421 | drv->driver.bus = &pci_bus_type; | 421 | drv->driver.bus = &pci_bus_type; |
422 | drv->driver.owner = owner; | 422 | drv->driver.owner = owner; |
423 | drv->driver.kobj.ktype = &pci_driver_kobj_type; | 423 | drv->driver.kobj.ktype = &pci_driver_kobj_type; |
424 | drv->driver.multithread_probe = pci_multithread_probe; | 424 | |
425 | if (pci_multithread_probe) | ||
426 | drv->driver.multithread_probe = pci_multithread_probe; | ||
427 | else | ||
428 | drv->driver.multithread_probe = drv->multithread_probe; | ||
425 | 429 | ||
426 | spin_lock_init(&drv->dynids.lock); | 430 | spin_lock_init(&drv->dynids.lock); |
427 | INIT_LIST_HEAD(&drv->dynids.list); | 431 | INIT_LIST_HEAD(&drv->dynids.list); |
diff --git a/include/linux/pci.h b/include/linux/pci.h index c9bb7bee52c7..549d8410974b 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -356,6 +356,8 @@ struct pci_driver { | |||
356 | struct pci_error_handlers *err_handler; | 356 | struct pci_error_handlers *err_handler; |
357 | struct device_driver driver; | 357 | struct device_driver driver; |
358 | struct pci_dynids dynids; | 358 | struct pci_dynids dynids; |
359 | |||
360 | int multithread_probe; | ||
359 | }; | 361 | }; |
360 | 362 | ||
361 | #define to_pci_driver(drv) container_of(drv,struct pci_driver, driver) | 363 | #define to_pci_driver(drv) container_of(drv,struct pci_driver, driver) |