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

Commit d7544424 authored by Wei Yongjun's avatar Wei Yongjun Committed by Scott Wood
Browse files

soc/fsl/bman: Use resource_size instead of computation



Use resource_size function on resource object
instead of explicit computation.

Generated by: scripts/coccinelle/api/resource_size.cocci

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarScott Wood <oss@buserror.net>
parent c9492b4b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -181,8 +181,7 @@ static int fsl_bman_probe(struct platform_device *pdev)
			node->full_name);
		return -ENXIO;
	}
	bm_ccsr_start = devm_ioremap(dev, res->start,
				     res->end - res->start + 1);
	bm_ccsr_start = devm_ioremap(dev, res->start, resource_size(res));
	if (!bm_ccsr_start)
		return -ENXIO;