Fix pata imx resource
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Sat, 27 Aug 2011 13:19:00 +0000 (15:19 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Sat, 27 Aug 2011 18:31:06 +0000 (20:31 +0200)
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>
arch/arm/plat-mxc/devices/platform-pata_imx.c

index de33048aad6a28927c87a9d16b7fe8a77de16c7d..70e2f2a4471440bc200a63135db831775722ef39 100644 (file)
@@ -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,
                },
                {