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

Commit 6a966e06 authored by Silviu-Mihai Popescu's avatar Silviu-Mihai Popescu Committed by Chris Ball
Browse files

mmc: android-goldfish: use resource_size()



Use resource_size() instead of explicit calculation. This was found via
make coccicheck.

Signed-off-by: default avatarSilviu-Mihai Popescu <silviupopescu1990@gmail.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent cfbeb59c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -476,7 +476,7 @@ static int goldfish_mmc_probe(struct platform_device *pdev)
	host->mmc = mmc;

	pr_err("mmc: Mapping %lX to %lX\n", (long)res->start, (long)res->end);
	host->reg_base = ioremap(res->start, res->end - res->start + 1);
	host->reg_base = ioremap(res->start, resource_size(res));
	if (host->reg_base == NULL) {
		ret = -ENOMEM;
		goto ioremap_failed;