pxa2xx_pic: Set base address for sysbus device.

Thid device's registration was broken since
e1f8c729fa, this should fix it.
This commit is contained in:
Andrzej Zaborowski 2011-03-03 03:43:40 +01:00 committed by Andrzej Zaborowski
parent 13801f32f6
commit 0c69aa703c

View File

@ -268,6 +268,8 @@ DeviceState *pxa2xx_pic_init(target_phys_addr_t base, CPUState *env)
qdev_init_gpio_in(dev, pxa2xx_pic_set_irq, PXA2XX_PIC_SRCS);
sysbus_mmio_map(sysbus_from_qdev(dev), 0, base);
/* Enable IC memory-mapped registers access. */
iomemtype = cpu_register_io_memory(pxa2xx_pic_readfn,
pxa2xx_pic_writefn, s, DEVICE_NATIVE_ENDIAN);