Skip to content

Commit

Permalink
virtio: balloon: drop restore_common()
Browse files Browse the repository at this point in the history
restore_common() was used when there were different thaw and freeze PM
callbacks implemented.  We removed thaw in commit
f38f838.

restore_common() can be removed and virtballoon_restore() can itself do
the restore ops.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Amit Shah authored and Rusty Russell committed May 22, 2012
1 parent 991ad9e commit c45b416
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/virtio/virtio_balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ static int virtballoon_freeze(struct virtio_device *vdev)
return 0;
}

static int restore_common(struct virtio_device *vdev)
static int virtballoon_restore(struct virtio_device *vdev)
{
struct virtio_balloon *vb = vdev->priv;
int ret;
Expand All @@ -432,11 +432,6 @@ static int restore_common(struct virtio_device *vdev)
update_balloon_size(vb);
return 0;
}

static int virtballoon_restore(struct virtio_device *vdev)
{
return restore_common(vdev);
}
#endif

static unsigned int features[] = {
Expand Down

0 comments on commit c45b416

Please sign in to comment.