summaryrefslogtreecommitdiffstats
path: root/hw/ssi
diff options
context:
space:
mode:
authorPeter Crosthwaite2014-08-15 10:14:36 +0200
committerMichael Tokarev2014-08-15 16:54:40 +0200
commitc75f3c041aff0d6192049860a8f7b4db40ec0603 (patch)
tree030cea7a72087e5d39555e90937b0771240a66b6 /hw/ssi
parentvl: free err (diff)
downloadqemu-c75f3c041aff0d6192049860a8f7b4db40ec0603.tar.gz
qemu-c75f3c041aff0d6192049860a8f7b4db40ec0603.tar.xz
qemu-c75f3c041aff0d6192049860a8f7b4db40ec0603.zip
ssi: xilinx_spi: Initialise CS GPIOs as NULL
To properly indicate they are unconnected. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/ssi')
-rw-r--r--hw/ssi/xilinx_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ssi/xilinx_spi.c b/hw/ssi/xilinx_spi.c
index 207f47a1c0..620573caca 100644
--- a/hw/ssi/xilinx_spi.c
+++ b/hw/ssi/xilinx_spi.c
@@ -329,7 +329,7 @@ static int xilinx_spi_init(SysBusDevice *sbd)
s->spi = ssi_create_bus(dev, "spi");
sysbus_init_irq(sbd, &s->irq);
- s->cs_lines = g_new(qemu_irq, s->num_cs);
+ s->cs_lines = g_new0(qemu_irq, s->num_cs);
ssi_auto_connect_slaves(dev, s->cs_lines, s->spi);
for (i = 0; i < s->num_cs; ++i) {
sysbus_init_irq(sbd, &s->cs_lines[i]);