summaryrefslogtreecommitdiffstats
path: root/hw/ssi
diff options
context:
space:
mode:
authorPeter Crosthwaite2014-02-12 01:27:50 +0100
committerAndreas Färber2014-03-12 20:13:02 +0100
commit1a7d9ee6dd4aa44fc7d937bded8d542e0265e57f (patch)
tree318a4ef143b6b4c7d13d2ac1b0b12cd9e76e93a6 /hw/ssi
parentqom: Avoid leaking str and bool properties on failure (diff)
downloadqemu-1a7d9ee6dd4aa44fc7d937bded8d542e0265e57f.tar.gz
qemu-1a7d9ee6dd4aa44fc7d937bded8d542e0265e57f.tar.xz
qemu-1a7d9ee6dd4aa44fc7d937bded8d542e0265e57f.zip
ssi: Convert legacy SSI_SLAVE -> DEVICE casts
Convert legacy ->qdev style casts from TYPE_SSI_SLAVE to TYPE_DEVICE. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> [AF: Introduce local DeviceState variable for transition to QOM realize] Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/ssi')
-rw-r--r--hw/ssi/ssi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ssi/ssi.c b/hw/ssi/ssi.c
index 2c25260875..3cac37c676 100644
--- a/hw/ssi/ssi.c
+++ b/hw/ssi/ssi.c
@@ -60,7 +60,7 @@ static int ssi_slave_init(DeviceState *dev)
if (ssc->transfer_raw == ssi_transfer_raw_default &&
ssc->cs_polarity != SSI_CS_NONE) {
- qdev_init_gpio_in(&s->qdev, ssi_cs_default, 1);
+ qdev_init_gpio_in(dev, ssi_cs_default, 1);
}
return ssc->init(s);