diff options
author | Avi Kivity <avi@redhat.com> | 2011-11-23 14:58:10 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-11-28 15:38:40 +0200 |
commit | a56e423c7c39af0fa1515d575fddfda032a02916 (patch) | |
tree | 96b3d3650fd801ff43246360d606c964327c4507 /hw/omap_spi.c | |
parent | 92c0bba9a95739c92e959fe478cb1acb92fa5446 (diff) | |
download | qemu-a56e423c7c39af0fa1515d575fddfda032a02916.zip qemu-a56e423c7c39af0fa1515d575fddfda032a02916.tar.gz qemu-a56e423c7c39af0fa1515d575fddfda032a02916.tar.bz2 |
omap: eliminate l4_register_io_memory
This is a trivial wrapper around cpu_register_io_memory(), adding
no value. Inline it into all callers.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/omap_spi.c')
-rw-r--r-- | hw/omap_spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/omap_spi.c b/hw/omap_spi.c index 6030ad9..c20f425 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; |