diff mbox

[1/1] Fix pata imx resource

Message ID 20110827131911.571434313@rtp-net.org (mailing list archive)
State New, archived
Headers show

Commit Message

Arnaud Patard (Rtp) Aug. 27, 2011, 1:19 p.m. UTC
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>
diff mbox

Patch

Index: linux-2.6-submit/arch/arm/plat-mxc/devices/platform-pata_imx.c
===================================================================
--- linux-2.6-submit.orig/arch/arm/plat-mxc/devices/platform-pata_imx.c	2011-08-26 18:09:55.000000000 +0200
+++ linux-2.6-submit/arch/arm/plat-mxc/devices/platform-pata_imx.c	2011-08-27 00:18:09.000000000 +0200
@@ -44,7 +44,7 @@  struct platform_device *__init imx_add_p
 	struct resource res[] = {
 		{
 			.start = data->iobase,
-			.end = data->iobase + data->iobase - 1,
+			.end = data->iobase + data->iosize - 1,
 			.flags = IORESOURCE_MEM,
 		},
 		{