Patchwork [1/1] Fix pata imx resource

login
register
mail settings
Submitter Arnaud Patard (Rtp)
Date Aug. 27, 2011, 1:19 p.m.
Message ID <20110827131911.571434313@rtp-net.org>
Download mbox | patch
Permalink /patch/111877/
State New
Headers show

Comments

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

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,
 		},
 		{