diff options
Diffstat (limited to 'drivers/pci/pci-driver.c')
-rw-r--r-- | drivers/pci/pci-driver.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 9e7d6ceb3805..8948ac9ab681 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c | |||
@@ -264,19 +264,6 @@ static int pci_device_remove(struct device * dev) | |||
264 | return 0; | 264 | return 0; |
265 | } | 265 | } |
266 | 266 | ||
267 | static int pci_device_suspend_prepare(struct device * dev, pm_message_t state) | ||
268 | { | ||
269 | struct pci_dev * pci_dev = to_pci_dev(dev); | ||
270 | struct pci_driver * drv = pci_dev->driver; | ||
271 | int i = 0; | ||
272 | |||
273 | if (drv && drv->suspend_prepare) { | ||
274 | i = drv->suspend_prepare(pci_dev, state); | ||
275 | suspend_report_result(drv->suspend_prepare, i); | ||
276 | } | ||
277 | return i; | ||
278 | } | ||
279 | |||
280 | static int pci_device_suspend(struct device * dev, pm_message_t state) | 267 | static int pci_device_suspend(struct device * dev, pm_message_t state) |
281 | { | 268 | { |
282 | struct pci_dev * pci_dev = to_pci_dev(dev); | 269 | struct pci_dev * pci_dev = to_pci_dev(dev); |
@@ -544,7 +531,6 @@ struct bus_type pci_bus_type = { | |||
544 | .uevent = pci_uevent, | 531 | .uevent = pci_uevent, |
545 | .probe = pci_device_probe, | 532 | .probe = pci_device_probe, |
546 | .remove = pci_device_remove, | 533 | .remove = pci_device_remove, |
547 | .suspend_prepare= pci_device_suspend_prepare, | ||
548 | .suspend = pci_device_suspend, | 534 | .suspend = pci_device_suspend, |
549 | .suspend_late = pci_device_suspend_late, | 535 | .suspend_late = pci_device_suspend_late, |
550 | .resume_early = pci_device_resume_early, | 536 | .resume_early = pci_device_resume_early, |