diff options
author | Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org> | 2011-08-27 09:19:00 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-27 14:31:06 -0400 |
commit | 318007e9001349db9b4fcd49e9e79a7636dba7a9 (patch) | |
tree | b0dfbdc0e8b4ca426820750cac8ff3393be7aa6b /arch/arm/plat-mxc | |
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>
Diffstat (limited to 'arch/arm/plat-mxc')
-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( | |||
44 | struct resource res[] = { | 44 | struct resource res[] = { |
45 | { | 45 | { |
46 | .start = data->iobase, | 46 | .start = data->iobase, |
47 | .end = data->iobase + data->iobase - 1, | 47 | .end = data->iobase + data->iosize - 1, |
48 | .flags = IORESOURCE_MEM, | 48 | .flags = IORESOURCE_MEM, |
49 | }, | 49 | }, |
50 | { | 50 | { |