diff options
-rw-r--r-- | drivers/pci/pci-driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 7146b69b812c..0aa14c92b570 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c | |||
@@ -380,8 +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 | drv->driver.probe = pci_device_probe; | ||
384 | drv->driver.remove = pci_device_remove; | ||
385 | /* FIXME, once all of the existing PCI drivers have been fixed to set | 383 | /* FIXME, once all of the existing PCI drivers have been fixed to set |
386 | * the pci shutdown function, this test can go away. */ | 384 | * the pci shutdown function, this test can go away. */ |
387 | if (!drv->driver.shutdown) | 385 | if (!drv->driver.shutdown) |
@@ -513,6 +511,8 @@ struct bus_type pci_bus_type = { | |||
513 | .name = "pci", | 511 | .name = "pci", |
514 | .match = pci_bus_match, | 512 | .match = pci_bus_match, |
515 | .uevent = pci_uevent, | 513 | .uevent = pci_uevent, |
514 | .probe = pci_device_probe, | ||
515 | .remove = pci_device_remove, | ||
516 | .suspend = pci_device_suspend, | 516 | .suspend = pci_device_suspend, |
517 | .resume = pci_device_resume, | 517 | .resume = pci_device_resume, |
518 | .dev_attrs = pci_dev_attrs, | 518 | .dev_attrs = pci_dev_attrs, |