aboutsummaryrefslogtreecommitdiff
path: root/hw/omap_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/omap_i2c.c')
-rw-r--r--hw/omap_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/omap_i2c.c b/hw/omap_i2c.c
index 9915676b1f..f3ccbf0549 100644
--- a/hw/omap_i2c.c
+++ b/hw/omap_i2c.c
@@ -526,7 +526,7 @@ struct omap_i2c_s *omap2_i2c_init(struct omap_target_agent_s *ta,
s->bus = i2c_init_bus();
omap_i2c_reset(s);
- iomemtype = cpu_register_io_memory(0, omap_i2c_readfn,
+ iomemtype = l4_register_io_memory(0, omap_i2c_readfn,
omap_i2c_writefn, s);
s->base = omap_l4_attach(ta, 0, iomemtype);