]> Pileus Git - ~andy/linux/blobdiff - drivers/virtio/virtio_balloon.c
virtio: pm: use CONFIG_PM_SLEEP instead of CONFIG_PM
[~andy/linux] / drivers / virtio / virtio_balloon.c
index 1f572c00a1bec2f13e68861e6dda971e6fef5d40..d6f6816416060421741943695dcf2ef7ced998e3 100644 (file)
@@ -513,7 +513,7 @@ static void virtballoon_remove(struct virtio_device *vdev)
        kfree(vb);
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int virtballoon_freeze(struct virtio_device *vdev)
 {
        struct virtio_balloon *vb = vdev->priv;
@@ -556,7 +556,7 @@ static struct virtio_driver virtio_balloon_driver = {
        .probe =        virtballoon_probe,
        .remove =       virtballoon_remove,
        .config_changed = virtballoon_changed,
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
        .freeze =       virtballoon_freeze,
        .restore =      virtballoon_restore,
 #endif