mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
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>
This commit is contained in:
parent
3a9cbfe009
commit
c75f3c041a
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user