diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-01-25 14:12:28 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-01 15:53:09 -0600 |
commit | 39355c3826f5d9a2eb1ce3dc9b4cdd68893769d6 (patch) | |
tree | 9f098b73f5def4436df27a6bde2b09aca242b645 /hw/qdev.c | |
parent | 013e118247d0f1894f329ad31b8f8a9e279555f3 (diff) | |
download | qemu-39355c3826f5d9a2eb1ce3dc9b4cdd68893769d6.tar.gz qemu-39355c3826f5d9a2eb1ce3dc9b4cdd68893769d6.tar.bz2 qemu-39355c3826f5d9a2eb1ce3dc9b4cdd68893769d6.zip |
qdev: change first argument of qbus_create_inplace to void *
Make it clear that no BUS() macro is needed in the callers (in fact it
wouldn't work because the object has not been initialized yet with the
right class).
Suggested-by: Andreas Faerber <afaerber@suse.de>
Acked-by: Andreas F=E4rber <afaerber@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.c')
-rw-r--r-- | hw/qdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -428,7 +428,7 @@ static void qbus_realize(BusState *bus, DeviceState *parent, const char *name) } } -void qbus_create_inplace(BusState *bus, const char *typename, +void qbus_create_inplace(void *bus, const char *typename, DeviceState *parent, const char *name) { object_initialize(bus, typename); |