summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-10-09 16:25:13 -0300
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-10 10:02:40 +0200
commit973a6a76dc0b2a032b682ed7705828584bf87427 (patch)
tree833301eb0c3ef7483c874c39886b181697c471ba
parent3b4d6c8283bd676e4e8dc2c3c96d4a024ca2d7f3 (diff)
downloadlinux-stable-973a6a76dc0b2a032b682ed7705828584bf87427.tar.gz
linux-stable-973a6a76dc0b2a032b682ed7705828584bf87427.tar.bz2
linux-stable-973a6a76dc0b2a032b682ed7705828584bf87427.zip
ARM: mxc: platform-mxc-mmc: Fix register region size
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>
-rw-r--r--arch/arm/plat-mxc/devices/platform-mxc-mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-mxc-mmc.c b/arch/arm/plat-mxc/devices/platform-mxc-mmc.c
index 540d3a7d92df..e7b920b58675 100644
--- a/arch/arm/plat-mxc/devices/platform-mxc-mmc.c
+++ b/arch/arm/plat-mxc/devices/platform-mxc-mmc.c
@@ -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,