diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2014-08-15 01:14:36 -0700 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-08-15 18:54:40 +0400 |
commit | c75f3c041aff0d6192049860a8f7b4db40ec0603 (patch) | |
tree | 030cea7a72087e5d39555e90937b0771240a66b6 /hw/ssi | |
parent | 3a9cbfe0096ad88d52c39f5a9d03f17251f750a5 (diff) |
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.c | 2 |
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]); |