From patchwork Sun Mar 20 03:17:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 681 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:44:40 -0000 Delivered-To: patches@linaro.org Received: by 10.220.28.198 with SMTP id n6cs84771vcc; Sat, 19 Mar 2011 20:14:59 -0700 (PDT) Received: by 10.43.58.135 with SMTP id wk7mr4250625icb.433.1300590898707; Sat, 19 Mar 2011 20:14:58 -0700 (PDT) Received: from mail-iw0-f178.google.com (mail-iw0-f178.google.com [209.85.214.178]) by mx.google.com with ESMTPS id 16si10387649ibc.47.2011.03.19.20.14.56 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Mar 2011 20:14:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.214.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.214.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by iwn9 with SMTP id 9so6684511iwn.37 for ; Sat, 19 Mar 2011 20:14:55 -0700 (PDT) Received: by 10.42.171.202 with SMTP id k10mr4340628icz.255.1300590895735; Sat, 19 Mar 2011 20:14:55 -0700 (PDT) Received: from localhost.localdomain ([121.228.78.56]) by mx.google.com with ESMTPS id wt14sm2977538icb.4.2011.03.19.20.14.50 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 Mar 2011 20:14:54 -0700 (PDT) From: Shawn Guo To: linux-arm-kernel@lists.infradead.org Cc: patches@linaro.org, kernel@pengutronix.de, Shawn Guo Subject: [PATCH] ARM: mxc: fix buggy '.end' of IORESOURCE_MEM in device codes Date: Sun, 20 Mar 2011 11:17:59 +0800 Message-Id: <1300591079-1675-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.1 Signed-off-by: Shawn Guo Acked-by: Uwe Kleine-König --- 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,