Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8e3f6ca authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Chris Ball
Browse files

mmc: atmel-mci.c: use resource_size()



[cjb: rebased patch against Linus]
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent af2a85fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1777,7 +1777,7 @@ static int __init atmci_probe(struct platform_device *pdev)
	}
	}


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