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>

Amit Shah f878d0be 04c2322b

Changed files
+1 -6
drivers
virtio
+1 -6
drivers/virtio/virtio_pci.c
··· 768 768 } 769 769 770 770 static const struct dev_pm_ops virtio_pci_pm_ops = { 771 - .suspend = virtio_pci_freeze, 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, 771 + SET_SYSTEM_SLEEP_PM_OPS(virtio_pci_freeze, virtio_pci_restore) 777 772 }; 778 773 #endif 779 774