mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
modify a small flaw in calling iomap function
This commit is contained in:
parent
10e078ae1a
commit
87ec53df0f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user