Fix pata imx resource

Commit 236c4e8be4
"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>
This commit is contained in:
Arnaud Patard (Rtp) 2011-08-27 15:19:00 +02:00 committed by Sascha Hauer
parent d5534ba6c7
commit 318007e900

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