summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>2011-08-27 15:19:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-27 20:31:06 +0200
commit318007e9001349db9b4fcd49e9e79a7636dba7a9 (patch)
treeb0dfbdc0e8b4ca426820750cac8ff3393be7aa6b
parentd5534ba6c783a36332e55036273411f4d14b9af6 (diff)
downloadop-kernel-dev-318007e9001349db9b4fcd49e9e79a7636dba7a9.zip
op-kernel-dev-318007e9001349db9b4fcd49e9e79a7636dba7a9.tar.gz
Fix pata imx resource
Commit 236c4e8be436380b5354fe0d7facf94688e024ec "ARM: imx: Add PATA resources for other i.MX processors" has broken resource declaration of pata_imx device by using iobase instead of iosize. Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/plat-mxc/devices/platform-pata_imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-pata_imx.c b/arch/arm/plat-mxc/devices/platform-pata_imx.c
index de33048..70e2f2a 100644
--- a/arch/arm/plat-mxc/devices/platform-pata_imx.c
+++ b/arch/arm/plat-mxc/devices/platform-pata_imx.c
@@ -44,7 +44,7 @@ struct platform_device *__init imx_add_pata_imx(
struct resource res[] = {
{
.start = data->iobase,
- .end = data->iobase + data->iobase - 1,
+ .end = data->iobase + data->iosize - 1,
.flags = IORESOURCE_MEM,
},
{
OpenPOWER on IntegriCloud