Skip to content

Commit

Permalink
ARM: mxc: platform-mxc-mmc: Fix register region size
Browse files Browse the repository at this point in the history
Do not hardcode the register region to SZ_4K as this is not correct for mx31.

Use data->iosize instead which works for both mx27 and mx31 cases.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Fabio Estevam authored and Sascha Hauer committed Oct 10, 2012
1 parent 3b4d6c8 commit 973a6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-mxc/devices/platform-mxc-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct platform_device *__init imx_add_mxc_mmc(
struct resource res[] = {
{
.start = data->iobase,
.end = data->iobase + SZ_4K - 1,
.end = data->iobase + data->iosize - 1,
.flags = IORESOURCE_MEM,
}, {
.start = data->irq,
Expand Down

0 comments on commit 973a6a7

Please sign in to comment.