Skip to content

Commit

Permalink
virtio-pci: switch to PM ops macro to initialise PM functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amit Shah committed Mar 31, 2012
1 parent 04c2322 commit f878d0b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/virtio/virtio_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f878d0b

Please sign in to comment.