Patchwork [14/14] esp: Fix memory API conversion

login
register
mail settings
Submitter Benoit Canet
Date Nov. 15, 2011, 11:14 a.m.
Message ID <1321355644-1982-15-git-send-email-benoit.canet@gmail.com>
Download mbox | patch
Permalink /patch/125753/
State New
Headers show

Comments

Benoit Canet - Nov. 15, 2011, 11:14 a.m.
Signed-off-by: Benoit Canet <benoit.canet@gmail.com>
---
 hw/esp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/esp.c b/hw/esp.c
index 2f23df9..9ab41ba 100644
--- a/hw/esp.c
+++ b/hw/esp.c
@@ -745,6 +745,7 @@  static int esp_init1(SysBusDevice *dev)
 
     memory_region_init_io(&s->iomem, &esp_mem_ops, s,
                           "esp", ESP_REGS << s->it_shift);
+    sysbus_init_mmio_region(dev, &s->iomem);
 
     qdev_init_gpio_in(&dev->qdev, esp_gpio_demux, 2);