From c75f3c041aff0d6192049860a8f7b4db40ec0603 Mon Sep 17 00:00:00 2001 From: Peter Crosthwaite Date: Fri, 15 Aug 2014 01:14:36 -0700 Subject: ssi: xilinx_spi: Initialise CS GPIOs as NULL To properly indicate they are unconnected. Signed-off-by: Peter Crosthwaite Signed-off-by: Michael Tokarev --- hw/ssi/xilinx_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- cgit v1.2.3