From: xbw Date: Tue, 9 Aug 2011 06:50:12 +0000 (+0800) Subject: modify a small flaw in calling iomap function X-Git-Tag: firefly_0821_release~9772^2~18^2~23^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=87ec53df0f94a51afc2ff09dda0e629da2f1fe2b;p=firefly-linux-kernel-4.4.55.git modify a small flaw in calling iomap function --- diff --git a/drivers/mmc/host/rk29_sdmmc.c b/drivers/mmc/host/rk29_sdmmc.c index a4635fd95afa..1c70acd04d9a 100755 --- a/drivers/mmc/host/rk29_sdmmc.c +++ b/drivers/mmc/host/rk29_sdmmc.c @@ -2785,7 +2785,7 @@ static int rk29_sdmmc_probe(struct platform_device *pdev) clk_enable(clk_get(&pdev->dev, "hclk_mmc")); ret = -ENOMEM; - host->regs = ioremap(regs->start, regs->end - regs->start); + host->regs = ioremap(regs->start, regs->end - regs->start + 1); if (!host->regs) { host->errorstep = 0x8A;