aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2012-03-29 03:28:05 -0400
committerAmit Shah <amit.shah@redhat.com>2012-03-30 22:39:51 -0400
commitf878d0be229ab129bc4b224191f217106a4b0bc1 (patch)
tree8cf8de049cc777be1e55a2d868289b45a1e8b9cf /drivers
parent04c2322bee841121cfdd7f284e1d4274e9e60e33 (diff)
virtio-pci: switch to PM ops macro to initialise PM functions
Use the SET_SYSTEM_SLEEP_PM_OPS macro to initialise the suspend/resume functions in the new PM API. Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/virtio/virtio_pci.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c
index 0fa4f8551c3a..2e03d416b9af 100644
--- a/drivers/virtio/virtio_pci.c
+++ b/drivers/virtio/virtio_pci.c
@@ -768,12 +768,7 @@ static int virtio_pci_restore(struct device *dev)
768} 768}
769 769
770static const struct dev_pm_ops virtio_pci_pm_ops = { 770static const struct dev_pm_ops virtio_pci_pm_ops = {
771 .suspend = virtio_pci_freeze, 771 SET_SYSTEM_SLEEP_PM_OPS(virtio_pci_freeze, virtio_pci_restore)
772 .resume = virtio_pci_restore,
773 .freeze = virtio_pci_freeze,
774 .thaw = virtio_pci_restore,
775 .restore = virtio_pci_restore,
776 .poweroff = virtio_pci_freeze,
777}; 772};
778#endif 773#endif
779 774