diff options
author | KONRAD Frederic <fred.konrad@greensocs.com> | 2013-04-24 10:08:01 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-24 11:50:20 -0500 |
commit | 611aa333b472c3fee5d4aed3b7e007621797e895 (patch) | |
tree | 80f7470c9242cbcc72034196fd23d0b791320c01 /include/hw | |
parent | 65f3b678f5b825010a1d167e82dca26ca84a199d (diff) | |
download | hqemu-611aa333b472c3fee5d4aed3b7e007621797e895.zip hqemu-611aa333b472c3fee5d4aed3b7e007621797e895.tar.gz |
virtio-rng: cleanup: use QOM casts.
As the virtio-rng-pci, virtio-rng-s390 and virtio-rng-ccw are
switched to the new API, we can use QOM casts.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Message-id: 1366790881-3026-9-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/virtio/virtio-rng.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/virtio/virtio-rng.h b/include/hw/virtio/virtio-rng.h index 4347818..debaa15 100644 --- a/include/hw/virtio/virtio-rng.h +++ b/include/hw/virtio/virtio-rng.h @@ -30,7 +30,7 @@ struct VirtIORNGConf { }; typedef struct VirtIORNG { - VirtIODevice vdev; + VirtIODevice parent_obj; /* Only one vq - guest puts buffer(s) on it when it needs entropy */ VirtQueue *vq; |