diff options
author | Andreas Färber <afaerber@suse.de> | 2013-08-24 00:02:27 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-08-30 21:15:35 +0200 |
commit | fb17dfe0575243a3f60dcefca37fa82ae682f146 (patch) | |
tree | e2b1bc60fe8cd608b5655c475793667da9f696ad /hw/usb/dev-smartcard-reader.c | |
parent | e5f720391e0628131cb6548b3d27be6aa56ae7d4 (diff) | |
download | qemu-fb17dfe0575243a3f60dcefca37fa82ae682f146.zip qemu-fb17dfe0575243a3f60dcefca37fa82ae682f146.tar.gz qemu-fb17dfe0575243a3f60dcefca37fa82ae682f146.tar.bz2 |
qdev: Pass size to qbus_create_inplace()
To be passed to object_initialize().
Since commit 39355c3826f5d9a2eb1ce3dc9b4cdd68893769d6 the argument is
void*, so drop some superfluous (BusState *) casts or direct parent
field usages.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/usb/dev-smartcard-reader.c')
-rw-r--r-- | hw/usb/dev-smartcard-reader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 2233c54..8c7a61e 100644 --- a/hw/usb/dev-smartcard-reader.c +++ b/hw/usb/dev-smartcard-reader.c @@ -1309,7 +1309,8 @@ static int ccid_initfn(USBDevice *dev) usb_desc_create_serial(dev); usb_desc_init(dev); - qbus_create_inplace(&s->bus.qbus, TYPE_CCID_BUS, &dev->qdev, NULL); + qbus_create_inplace(&s->bus, sizeof(s->bus), TYPE_CCID_BUS, DEVICE(dev), + NULL); s->intr = usb_ep_get(dev, USB_TOKEN_IN, CCID_INT_IN_EP); s->bus.qbus.allow_hotplug = 1; s->card = NULL; |