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_l4.c | |
parent | 92c0bba9a95739c92e959fe478cb1acb92fa5446 (diff) |
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_l4.c')
-rw-r--r-- | hw/omap_l4.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/hw/omap_l4.c b/hw/omap_l4.c index ebec8747a9..a19ea702d6 100644 --- a/hw/omap_l4.c +++ b/hw/omap_l4.c @@ -20,14 +20,6 @@ #include "hw.h" #include "omap.h" -int l4_register_io_memory(CPUReadMemoryFunc * const *mem_read, - CPUWriteMemoryFunc * const *mem_write, - void *opaque) -{ - return cpu_register_io_memory(mem_read, mem_write, opaque, - DEVICE_NATIVE_ENDIAN); -} - struct omap_l4_s { target_phys_addr_t base; int ta_num; @@ -132,8 +124,8 @@ struct omap_target_agent_s *omap_l4ta_get(struct omap_l4_s *bus, ta->status = 0x00000000; ta->control = 0x00000200; /* XXX 01000200 for L4TAO */ - iomemtype = l4_register_io_memory(omap_l4ta_readfn, - omap_l4ta_writefn, ta); + iomemtype = cpu_register_io_memory(omap_l4ta_readfn, + omap_l4ta_writefn, ta, DEVICE_NATIVE_ENDIAN); ta->base = omap_l4_attach(ta, info->ta_region, iomemtype); return ta; |