diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-10-17 15:13:59 +0000 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-12-04 19:54:40 -0600 |
commit | d7544424169e0ba1ffdc39edbdfa822711a59c5f (patch) | |
tree | ef684c869f08031da96f895889b44bdcdb118f25 /drivers/soc | |
parent | c9492b4bea2630dacd18e16f8e8b0dcf91a6edcf (diff) | |
download | op-kernel-dev-d7544424169e0ba1ffdc39edbdfa822711a59c5f.zip op-kernel-dev-d7544424169e0ba1ffdc39edbdfa822711a59c5f.tar.gz |
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/soc')
-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; |