diff options
| -rw-r--r-- | drivers/pci/pci-driver.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 0aa14c92b570..eb5b50c8770c 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c | |||
| @@ -380,14 +380,6 @@ int __pci_register_driver(struct pci_driver *drv, struct module *owner) | |||
| 380 | /* initialize common driver fields */ | 380 | /* initialize common driver fields */ |
| 381 | drv->driver.name = drv->name; | 381 | drv->driver.name = drv->name; |
| 382 | drv->driver.bus = &pci_bus_type; | 382 | drv->driver.bus = &pci_bus_type; |
| 383 | /* FIXME, once all of the existing PCI drivers have been fixed to set | ||
| 384 | * the pci shutdown function, this test can go away. */ | ||
| 385 | if (!drv->driver.shutdown) | ||
| 386 | drv->driver.shutdown = pci_device_shutdown; | ||
| 387 | else | ||
| 388 | printk(KERN_WARNING "Warning: PCI driver %s has a struct " | ||
| 389 | "device_driver shutdown method, please update!\n", | ||
| 390 | drv->name); | ||
| 391 | drv->driver.owner = owner; | 383 | drv->driver.owner = owner; |
| 392 | drv->driver.kobj.ktype = &pci_driver_kobj_type; | 384 | drv->driver.kobj.ktype = &pci_driver_kobj_type; |
| 393 | 385 | ||
| @@ -514,6 +506,7 @@ struct bus_type pci_bus_type = { | |||
| 514 | .probe = pci_device_probe, | 506 | .probe = pci_device_probe, |
| 515 | .remove = pci_device_remove, | 507 | .remove = pci_device_remove, |
| 516 | .suspend = pci_device_suspend, | 508 | .suspend = pci_device_suspend, |
| 509 | .shutdown = pci_device_shutdown, | ||
| 517 | .resume = pci_device_resume, | 510 | .resume = pci_device_resume, |
| 518 | .dev_attrs = pci_dev_attrs, | 511 | .dev_attrs = pci_dev_attrs, |
| 519 | }; | 512 | }; |
