diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-01-08 02:33:51 +0100 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-01-13 18:48:30 +0100 |
commit | 1e0bf16cae6d50f9a10738c89957468c977c6f89 (patch) | |
tree | 2db049ac32ab4514a09a15fe4cbe430fc2cc07e1 /drivers/mmc | |
parent | MAINTAINERS: mmc: Update Chris Ball's email address. (diff) | |
download | linux-1e0bf16cae6d50f9a10738c89957468c977c6f89.tar.xz linux-1e0bf16cae6d50f9a10738c89957468c977c6f89.zip |
mmc: tmio: fixup compile error
This patch fixes the below compile error:
${LINUX}/drivers/mmc/host/tmio_mmc.c: In function 'tmio_mmc_probe':
${LINUX}/drivers/mmc/host/tmio_mmc.c:93:35: \
error: 'res_ctl' undeclared (first use in this function)
${LINUX}/drivers/mmc/host/tmio_mmc.c:93:35: \
note: each undeclared identifier is reported only \
once for each function it appears in
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/tmio_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index 8a781e2ac4c3..1900abb04236 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c @@ -90,7 +90,7 @@ static int tmio_mmc_probe(struct platform_device *pdev) return -EINVAL; /* SD control register space size is 0x200, 0x400 for bus_shift=1 */ - pdata->bus_shift = resource_size(res_ctl) >> 10; + pdata->bus_shift = resource_size(res) >> 10; pdata->flags |= TMIO_MMC_HAVE_HIGH_REG; ret = tmio_mmc_host_probe(&host, pdev, pdata); |