aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2012-04-26 15:15:55 -0400
committerRusty Russell <rusty@rustcorp.com.au>2012-05-21 22:46:11 -0400
commitc45b4166d9eaed612fa29acb041662aa4ceb2712 (patch)
tree4edd4520a2ae2c8f75ac90273621bc07b6369c66 /drivers/virtio
parent991ad9ec39bd3ecaf08cfb7ea3ef7ae9148e5068 (diff)
virtio: balloon: drop restore_common()
restore_common() was used when there were different thaw and freeze PM callbacks implemented. We removed thaw in commit f38f8387cbdc4138a492ce9f2a5f04fd3cd3cf33. 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>
Diffstat (limited to 'drivers/virtio')
-rw-r--r--drivers/virtio/virtio_balloon.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index 8807fe501d20..04baad647403 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -419,7 +419,7 @@ static int virtballoon_freeze(struct virtio_device *vdev)
419 return 0; 419 return 0;
420} 420}
421 421
422static int restore_common(struct virtio_device *vdev) 422static int virtballoon_restore(struct virtio_device *vdev)
423{ 423{
424 struct virtio_balloon *vb = vdev->priv; 424 struct virtio_balloon *vb = vdev->priv;
425 int ret; 425 int ret;
@@ -432,11 +432,6 @@ static int restore_common(struct virtio_device *vdev)
432 update_balloon_size(vb); 432 update_balloon_size(vb);
433 return 0; 433 return 0;
434} 434}
435
436static int virtballoon_restore(struct virtio_device *vdev)
437{
438 return restore_common(vdev);
439}
440#endif 435#endif
441 436
442static unsigned int features[] = { 437static unsigned int features[] = {