aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2013-04-04 11:04:11 +1000
committerStefan Hajnoczi <stefanha@redhat.com>2013-04-05 15:04:10 +0200
commite641080fdc1e81290564e1e9ec4fe7637011fa82 (patch)
treed1a9ad3d542720e43715f02732a822540958018d
parent5b90a86629dcc075be294524696e6199266f72ad (diff)
downloadqemu-e641080fdc1e81290564e1e9ec4fe7637011fa82.zip
qemu-e641080fdc1e81290564e1e9ec4fe7637011fa82.tar.gz
qemu-e641080fdc1e81290564e1e9ec4fe7637011fa82.tar.bz2
petalogix_ml605_mmu: Cleanup ssi_create_slave()
With the recent m25p80 cleanup there is no need to use ssi_create_slave_no_init() anymore. Just use ssi_create_slave(). Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--hw/microblaze/petalogix_ml605_mmu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/hw/microblaze/petalogix_ml605_mmu.c
index cfc0220..07dc808 100644
--- a/hw/microblaze/petalogix_ml605_mmu.c
+++ b/hw/microblaze/petalogix_ml605_mmu.c
@@ -158,8 +158,7 @@ petalogix_ml605_init(QEMUMachineInitArgs *args)
for (i = 0; i < NUM_SPI_FLASHES; i++) {
qemu_irq cs_line;
- dev = ssi_create_slave_no_init(spi, "n25q128");
- qdev_init_nofail(dev);
+ dev = ssi_create_slave(spi, "n25q128");
cs_line = qdev_get_gpio_in(dev, 0);
sysbus_connect_irq(busdev, i+1, cs_line);
}