Skip to contentSkip to conversation

ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes

PATCH New Shawn Guo 3 participants 3 messages Mar 20, 2011

Subsystems (3)
lore
Share & tools
lore

Shawn Guo

author
#0 lore raw

PATCH 1/1 ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes

---
 arch/arm/plat-mxc/devices/platform-fec.c       |    2 +-
 arch/arm/plat-mxc/devices/platform-imxdi_rtc.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/plat-mxc/devices/platform-fec.c +1 -1
index 6561c9d..ccc789e 100644
@@ -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,
arch/arm/plat-mxc/devices/platform-imxdi_rtc.c +1 -1
index 10653cc..805336f 100644
@@ -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,
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes

Quoted 1 line · Shawn Guo

Thanks!

Signature · 9 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110320/5fa9fa7e/attachment.sig>