[PATCH 6/6] Fix pata imx resource
Arnaud Patard (Rtp)
arnaud.patard at rtp-net.org
Sat Aug 27 13:19:00 UTC 2011
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 at rtp-net.org>
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
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 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,
},
{
--
1.7.0.1
--pvezYHf7grwyp3Bc--
More information about the kernel
mailing list