Skip to content

Commit

Permalink
Fix pata imx resource
Browse files Browse the repository at this point in the history
Commit 236c4e8
"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>
  • Loading branch information
Arnaud Patard (Rtp) authored and Sascha Hauer committed Aug 27, 2011
1 parent d5534ba commit 318007e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-mxc/devices/platform-pata_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
{
Expand Down

0 comments on commit 318007e

Please sign in to comment.