diff options
author | Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> | 2011-08-27 15:19:00 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-27 20:31:06 +0200 |
commit | 318007e9001349db9b4fcd49e9e79a7636dba7a9 (patch) | |
tree | b0dfbdc0e8b4ca426820750cac8ff3393be7aa6b | |
parent | d5534ba6c783a36332e55036273411f4d14b9af6 (diff) |
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.c | 2 |
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 de33048aad6a..70e2f2a44714 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, }, { |