diff options
author | Magnus Damm <damm@opensource.se> | 2009-03-11 08:58:54 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2009-03-24 16:30:02 -0400 |
commit | bc6772a023ceab8df404b18b31c27f764dcf5b3f (patch) | |
tree | 6be80f41fc503bc127ee9dac25ab43c7df4e8b95 /drivers/mmc/host/tmio_mmc.c | |
parent | c0c88871574ccb4ee53dde1bbb678931b38ed47b (diff) |
tmio_mmc: Fix one off, use resource_size() in probe()
Update the tmio_mmc code to use resource_size(). With this
patch applied the correct resource size is passed to ioremap().
Signed-off-by: Magnus Damm <damm@opensource.se>
Acked-by: Ian Molton <ian@mnementh.co.uk>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc.c')
-rw-r--r-- | drivers/mmc/host/tmio_mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index 6a7a61904833..4f3e265d0203 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c | |||
@@ -568,11 +568,11 @@ static int __devinit tmio_mmc_probe(struct platform_device *dev) | |||
568 | host->mmc = mmc; | 568 | host->mmc = mmc; |
569 | platform_set_drvdata(dev, mmc); | 569 | platform_set_drvdata(dev, mmc); |
570 | 570 | ||
571 | host->ctl = ioremap(res_ctl->start, res_ctl->end - res_ctl->start); | 571 | host->ctl = ioremap(res_ctl->start, resource_size(res_ctl)); |
572 | if (!host->ctl) | 572 | if (!host->ctl) |
573 | goto host_free; | 573 | goto host_free; |
574 | 574 | ||
575 | host->cnf = ioremap(res_cnf->start, res_cnf->end - res_cnf->start); | 575 | host->cnf = ioremap(res_cnf->start, resource_size(res_cnf)); |
576 | if (!host->cnf) | 576 | if (!host->cnf) |
577 | goto unmap_ctl; | 577 | goto unmap_ctl; |
578 | 578 | ||