summaryrefslogtreecommitdiff
path: root/hw/omap_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/omap_spi.c')
-rw-r--r--hw/omap_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/omap_spi.c b/hw/omap_spi.c
index 6030ad9551..c20f425776 100644
--- a/hw/omap_spi.c
+++ b/hw/omap_spi.c
@@ -327,8 +327,8 @@ struct omap_mcspi_s *omap_mcspi_init(struct omap_target_agent_s *ta, int chnum,
}
omap_mcspi_reset(s);
- iomemtype = l4_register_io_memory(omap_mcspi_readfn,
- omap_mcspi_writefn, s);
+ iomemtype = cpu_register_io_memory(omap_mcspi_readfn,
+ omap_mcspi_writefn, s, DEVICE_NATIVE_ENDIAN);
omap_l4_attach(ta, 0, iomemtype);
return s;