projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04c2322
)
virtio-pci: switch to PM ops macro to initialise PM functions
author
Amit Shah
<amit.shah@redhat.com>
Thu, 29 Mar 2012 07:28:05 +0000
(12:58 +0530)
committer
Amit Shah
<amit.shah@redhat.com>
Sat, 31 Mar 2012 02:39:51 +0000
(08:09 +0530)
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>
drivers/virtio/virtio_pci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/virtio/virtio_pci.c
b/drivers/virtio/virtio_pci.c
index 0fa4f8551c3a3cc74e676deb6b824332be617555..2e03d416b9af5c294803448ffbf5be33a4e5d571 100644
(file)
--- 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