From a56e423c7c39af0fa1515d575fddfda032a02916 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Wed, 23 Nov 2011 14:58:10 +0200 Subject: 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 Signed-off-by: Avi Kivity --- hw/omap_l4.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'hw/omap_l4.c') 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; -- cgit v1.2.3-55-g7522