diff options
author | KONRAD Frederic <fred.konrad@greensocs.com> | 2013-03-18 17:37:28 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-03-18 13:08:41 -0500 |
commit | 2d62a95766025e6a0a333528278936e2cc8bf978 (patch) | |
tree | 5d61eee3182e76098aae90c0a31e60fbca7c13e7 /hw | |
parent | 1cc91b7df687289abc0ae09083ac564d01408be8 (diff) | |
download | qemu-2d62a95766025e6a0a333528278936e2cc8bf978.zip qemu-2d62a95766025e6a0a333528278936e2cc8bf978.tar.gz qemu-2d62a95766025e6a0a333528278936e2cc8bf978.tar.bz2 |
virtio-blk: cleanup: remove qdev field.
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1363624648-16906-12-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/virtio-blk.c | 3 | ||||
-rw-r--r-- | hw/virtio-blk.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 663edcd..e6f8875 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -669,7 +669,6 @@ static int virtio_blk_device_init(VirtIODevice *vdev) #endif s->change = qemu_add_vm_change_state_handler(virtio_blk_dma_restart_cb, s); - s->qdev = qdev; register_savevm(qdev, "virtio-blk", virtio_blk_id++, 2, virtio_blk_save, virtio_blk_load, s); bdrv_set_dev_ops(s->bs, &virtio_block_ops, s); @@ -690,7 +689,7 @@ static int virtio_blk_device_exit(DeviceState *dev) s->dataplane = NULL; #endif qemu_del_vm_change_state_handler(s->change); - unregister_savevm(s->qdev, "virtio-blk", s); + unregister_savevm(dev, "virtio-blk", s); blockdev_mark_auto_del(s->bs); virtio_common_cleanup(vdev); return 0; diff --git a/hw/virtio-blk.h b/hw/virtio-blk.h index 51ac010..8c6c78b 100644 --- a/hw/virtio-blk.h +++ b/hw/virtio-blk.h @@ -124,7 +124,6 @@ typedef struct VirtIOBlock { BlockConf *conf; VirtIOBlkConf blk; unsigned short sector_mask; - DeviceState *qdev; VMChangeStateEntry *change; #ifdef CONFIG_VIRTIO_BLK_DATA_PLANE VirtIOBlockDataPlane *dataplane; |