usb-musb: Take a DeviceState* in init function
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 31 Aug 2011 20:49:40 +0000 (21:49 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Sep 2011 07:58:27 +0000 (09:58 +0200)
commit57de31bceceefb2fe04b878f16b91a87a0cf7135
treed15e1050cbd8d53927d629dda12f712919fbe0b9
parent16ed50dd87acfc8ea439d78b8f82eb5a373dd71b
usb-musb: Take a DeviceState* in init function

Initialise usb-musb by passing it a DeviceState* and the offset of the
IRQs in its gpio array, rather than a plain pointer to an irq array.
This is simpler for callers and also allows us to pass in a valid parent
to usb_bus_new(), so the USB bus actually appears in the qdev tree.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/tusb6010.c
hw/usb-musb.c
hw/usb.h