diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-10-17 15:13:59 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-12-12 07:32:37 (GMT) |
commit | 526fba5049ce1f9aa0c6aa124e1049f12310359c (patch) | |
tree | 938074ace3832d8a62585c8d4db35e53162cc8b9 /drivers | |
parent | 0936689d3788655e7be20d3baea92e6ffd7408da (diff) | |
download | linux-526fba5049ce1f9aa0c6aa124e1049f12310359c.tar.xz |
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: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/soc/fsl/qbman/bman_ccsr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/soc/fsl/qbman/bman_ccsr.c b/drivers/soc/fsl/qbman/bman_ccsr.c index 9deb052..a8e8389 100644 --- a/drivers/soc/fsl/qbman/bman_ccsr.c +++ b/drivers/soc/fsl/qbman/bman_ccsr.c @@ -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; |