modify a small flaw in calling iomap function for old-SDMMC-driver
authorxbw <xbw@rock-chips.com>
Tue, 9 Aug 2011 06:51:27 +0000 (14:51 +0800)
committerxbw <xbw@rock-chips.com>
Tue, 9 Aug 2011 06:51:27 +0000 (14:51 +0800)
drivers/mmc/host/rk29_sdmmc_old.c

index b33d69c2300b096ad81025fb4e5d0a7f5b57fc52..592befd75092a24470ee551421206b2368a79309 100755 (executable)
@@ -1307,7 +1307,7 @@ static int rk29_sdmmc_probe(struct platform_device *pdev)
                goto err_mmc_free_host;
        }
        
-       host->regs = ioremap(regs->start, regs->end - regs->start);
+       host->regs = ioremap(regs->start, regs->end - regs->start + 1);
        if (!host->regs){
                dev_err(&pdev->dev, "ioremap error\n");
                ret = ENXIO;