aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorAaron Lu <aaron.lu@intel.com>2013-09-16 19:55:23 -0400
committerRusty Russell <rusty@rustcorp.com.au>2013-09-23 02:15:58 -0400
commit891070003999e7ac8881bba6f8242615382742eb (patch)
treeb9688861a4446b3fb58fc0c49a0816424b7617a8 /drivers/virtio
parentd8524ae9d6f492a9c6db9f4d89c5f9b8782fa2d5 (diff)
virtio: pm: use CONFIG_PM_SLEEP instead of CONFIG_PM
The freeze and restore functions defined in virtio drivers are used for suspend and hibernate, so CONFIG_PM_SLEEP is more appropriate than CONFIG_PM. This patch replace all CONFIG_PM with CONFIG_PM_SLEEP for virtio drivers that implement freeze and restore callbacks. Signed-off-by: Aaron Lu <aaron.lu@intel.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio')
-rw-r--r--drivers/virtio/virtio_balloon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index 1f572c00a1be..d6f681641606 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -513,7 +513,7 @@ static void virtballoon_remove(struct virtio_device *vdev)
513 kfree(vb); 513 kfree(vb);
514} 514}
515 515
516#ifdef CONFIG_PM 516#ifdef CONFIG_PM_SLEEP
517static int virtballoon_freeze(struct virtio_device *vdev) 517static int virtballoon_freeze(struct virtio_device *vdev)
518{ 518{
519 struct virtio_balloon *vb = vdev->priv; 519 struct virtio_balloon *vb = vdev->priv;
@@ -556,7 +556,7 @@ static struct virtio_driver virtio_balloon_driver = {
556 .probe = virtballoon_probe, 556 .probe = virtballoon_probe,
557 .remove = virtballoon_remove, 557 .remove = virtballoon_remove,
558 .config_changed = virtballoon_changed, 558 .config_changed = virtballoon_changed,
559#ifdef CONFIG_PM 559#ifdef CONFIG_PM_SLEEP
560 .freeze = virtballoon_freeze, 560 .freeze = virtballoon_freeze,
561 .restore = virtballoon_restore, 561 .restore = virtballoon_restore,
562#endif 562#endif