aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-06-07 13:02:29 +0930
committerPeter Maydell <peter.maydell@linaro.org>2012-07-25 13:35:02 +0100
commitc46dbd7040d9cfe58e7f9e1ecb961613a0e7a1d1 (patch)
treedc9d0443035a57743e18761d41dc7d29018c7caa
parentdcf438d892f9fbed5595868dc0d4b748cb427304 (diff)
downloadqemu-arm-c46dbd7040d9cfe58e7f9e1ecb961613a0e7a1d1.tar.gz
hw/omap_gpio.c: Don't complain about some writes to r/o registers
Don't complain about some writes to r/o OMAP2 GPIO registers, because the kernel will do them anyway. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/omap_gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/omap_gpio.c b/hw/omap_gpio.c
index 201ff77c36..8d5d9ee04d 100644
--- a/hw/omap_gpio.c
+++ b/hw/omap_gpio.c
@@ -383,7 +383,7 @@ static void omap2_gpio_module_write(void *opaque, target_phys_addr_t addr,
case 0x00: /* GPIO_REVISION */
case 0x14: /* GPIO_SYSSTATUS */
case 0x38: /* GPIO_DATAIN */
- OMAP_RO_REG(addr);
+ /* read-only, ignore quietly */
break;
case 0x10: /* GPIO_SYSCONFIG */
@@ -529,7 +529,7 @@ static void omap2_gpio_module_writep(void *opaque, target_phys_addr_t addr,
case 0x00: /* GPIO_REVISION */
case 0x14: /* GPIO_SYSSTATUS */
case 0x38: /* GPIO_DATAIN */
- OMAP_RO_REG(addr);
+ /* read-only, ignore quietly */
break;
case 0x10: /* GPIO_SYSCONFIG */