[07/17] omap_gpmc: Wire up the GPMC IRQ correctly

Message ID 1314302711-20498-8-git-send-email-peter.maydell@linaro.org
State New
Headers show

Commit Message

Peter Maydell Aug. 25, 2011, 8:05 p.m.
The omap_gpmc wasn't actually wiring up its IRQ, so
anything that provoked an interrupt would be using
uninitialised data for its IRQ number.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
 hw/omap_gpmc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/hw/omap_gpmc.c b/hw/omap_gpmc.c
index ff4d485..b728397 100644
--- a/hw/omap_gpmc.c
+++ b/hw/omap_gpmc.c
@@ -407,6 +407,7 @@  struct omap_gpmc_s *omap_gpmc_init(target_phys_addr_t base, qemu_irq irq)
     memory_region_init_io(&s->iomem, &omap_gpmc_ops, s, "omap-gpmc", 0x1000);
     memory_region_add_subregion(get_system_memory(), base, &s->iomem);
+    s->irq = irq;
     return s;