Skip to content

Commit

Permalink
mmc: atmel-mci.c: use resource_size()
Browse files Browse the repository at this point in the history
[cjb: rebased patch against Linus]
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
H Hartley Sweeten authored and Chris Ball committed Oct 23, 2010
1 parent af2a85f commit e8e3f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/atmel-mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,7 @@ static int __init atmci_probe(struct platform_device *pdev)
}

ret = -ENOMEM;
host->regs = ioremap(regs->start, regs->end - regs->start + 1);
host->regs = ioremap(regs->start, resource_size(regs));
if (!host->regs)
goto err_ioremap;

Expand Down

0 comments on commit e8e3f6c

Please sign in to comment.