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

Commit 22119901 authored by Alexandru Gheorghiu's avatar Alexandru Gheorghiu Committed by Chris Ball
Browse files

mmc: wmt-sdmmc: Use resource_size()



Used resource_size function instead of explicit computation.
Patch found using coccinelle.

Signed-off-by: default avatarAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 8a8396ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -923,7 +923,7 @@ static int wmt_mci_remove(struct platform_device *pdev)
	clk_put(priv->clk_sdmmc);

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	release_mem_region(res->start, res->end - res->start + 1);
	release_mem_region(res->start, resource_size(res));

	mmc_free_host(mmc);