Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f878d0be authored by Amit Shah's avatar Amit Shah
Browse files

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: default avatarAmit Shah <amit.shah@redhat.com>
parent 04c2322b
Loading
Loading
Loading
Loading
+1 −6
Original line number Original line Diff line number Diff line
@@ -768,12 +768,7 @@ static int virtio_pci_restore(struct device *dev)
}
}


static const struct dev_pm_ops virtio_pci_pm_ops = {
static const struct dev_pm_ops virtio_pci_pm_ops = {
	.suspend	= virtio_pci_freeze,
	SET_SYSTEM_SLEEP_PM_OPS(virtio_pci_freeze, virtio_pci_restore)
	.resume		= virtio_pci_restore,
	.freeze		= virtio_pci_freeze,
	.thaw		= virtio_pci_restore,
	.restore	= virtio_pci_restore,
	.poweroff	= virtio_pci_freeze,
};
};
#endif
#endif