Collapse omap peripherals on L4 bus into one io entry (temporarily).
[qemu] / hw / omap_i2c.c
index 9915676..f3ccbf0 100644 (file)
@@ -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);