diff options
author | Peter Crosthwaite | 2014-08-15 10:14:36 +0200 |
---|---|---|
committer | Michael Tokarev | 2014-08-15 16:54:40 +0200 |
commit | c75f3c041aff0d6192049860a8f7b4db40ec0603 (patch) | |
tree | 030cea7a72087e5d39555e90937b0771240a66b6 /hw/ssi | |
parent | vl: free err (diff) | |
download | qemu-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.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]); |