Patchwork [v1,1/2] petalogix_ml605_mmu: Cleanup ssi_create_slave()

login
register
mail settings
Submitter Peter Crosthwaite
Date April 4, 2013, 1:04 a.m.
Message ID <d4f0f38d2fdbed4823a84c0d71880a5bfa41936c.1365037290.git.peter.crosthwaite@xilinx.com>
Download mbox | patch
Permalink /patch/233605/
State New
Headers show

Comments

Peter Crosthwaite - April 4, 2013, 1:04 a.m.
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>
---

 hw/microblaze/petalogix_ml605_mmu.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Patch

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);
         }