linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes
@ 2011-03-20  3:17 Shawn Guo
  2011-03-20  9:06 ` Wolfram Sang
  2011-03-20 15:57 ` Uwe Kleine-König
  0 siblings, 2 replies; 3+ messages in thread
From: Shawn Guo @ 2011-03-20  3:17 UTC (permalink / raw)
  To: linux-arm-kernel

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
 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(-)

diff --git a/arch/arm/plat-mxc/devices/platform-fec.c b/arch/arm/plat-mxc/devices/platform-fec.c
index 6561c9d..ccc789e 100644
--- a/arch/arm/plat-mxc/devices/platform-fec.c
+++ b/arch/arm/plat-mxc/devices/platform-fec.c
@@ -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,
diff --git a/arch/arm/plat-mxc/devices/platform-imxdi_rtc.c b/arch/arm/plat-mxc/devices/platform-imxdi_rtc.c
index 10653cc..805336f 100644
--- a/arch/arm/plat-mxc/devices/platform-imxdi_rtc.c
+++ b/arch/arm/plat-mxc/devices/platform-imxdi_rtc.c
@@ -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,
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes
  2011-03-20  3:17 [PATCH] ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes Shawn Guo
@ 2011-03-20  9:06 ` Wolfram Sang
  2011-03-20 15:57 ` Uwe Kleine-König
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfram Sang @ 2011-03-20  9:06 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Mar 20, 2011 at 11:17:59AM +0800, Shawn Guo wrote:
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>

Acked-by: Wolfram Sang <w.sang@pengutronix.de>

Thanks!

-- 
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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes
  2011-03-20  3:17 [PATCH] ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes Shawn Guo
  2011-03-20  9:06 ` Wolfram Sang
@ 2011-03-20 15:57 ` Uwe Kleine-König
  1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2011-03-20 15:57 UTC (permalink / raw)
  To: linux-arm-kernel

On Sun, Mar 20, 2011 at 11:17:59AM +0800, Shawn Guo wrote:
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>

Thanks
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-20 15:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-20  3:17 [PATCH] ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes Shawn Guo
2011-03-20  9:06 ` Wolfram Sang
2011-03-20 15:57 ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).