From 437578b5d30f9c580bb82397eb3a8efa9ee191db Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Thu, 29 Mar 2012 13:58:11 +0530 Subject: [PATCH] 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 Signed-off-by: Michael S. Tsirkin --- drivers/virtio/virtio_pci.c | 7 +------ 1 file changed, 1 insertion(+), 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) } static const struct dev_pm_ops virtio_pci_pm_ops = { - .suspend = virtio_pci_freeze, - .resume = virtio_pci_restore, - .freeze = virtio_pci_freeze, - .thaw = virtio_pci_restore, - .restore = virtio_pci_restore, - .poweroff = virtio_pci_freeze, + SET_SYSTEM_SLEEP_PM_OPS(virtio_pci_freeze, virtio_pci_restore) }; #endif -- 2.39.5