ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes
authorShawn Guo <shawn.guo@linaro.org>
Sun, 20 Mar 2011 03:17:59 +0000 (11:17 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Wed, 23 Mar 2011 14:08:14 +0000 (15:08 +0100)
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/devices/platform-fec.c
arch/arm/plat-mxc/devices/platform-imxdi_rtc.c

index 6561c9df5f0de604628925a0331e3297b90ea5a8..ccc789e21daa37d3cd9aaad812a964b6b726c095 100644 (file)
@@ -53,7 +53,7 @@ struct platform_device *__init imx_add_fec(
        struct resource res[] = {
                {
                        .start = data->iobase,
-                       .end = data->iobase + SZ_4K,
+                       .end = data->iobase + SZ_4K - 1,
                        .flags = IORESOURCE_MEM,
                }, {
                        .start = data->irq,
index 10653cc8d1fab522f9754a25a1f27f2235a9744c..805336fdc2521cffa82268655f58a2216bb8e647 100644 (file)
@@ -27,7 +27,7 @@ struct platform_device *__init imx_add_imxdi_rtc(
        struct resource res[] = {
                {
                        .start = data->iobase,
-                       .end = data->iobase + SZ_16K,
+                       .end = data->iobase + SZ_16K - 1,
                        .flags = IORESOURCE_MEM,
                }, {
                        .start = data->irq,