projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9492b4
)
soc/fsl/bman: Use resource_size instead of computation
author
Wei Yongjun
<weiyongjun1@huawei.com>
Mon, 17 Oct 2016 15:13:59 +0000
(15:13 +0000)
committer
Scott Wood
<oss@buserror.net>
Mon, 5 Dec 2016 01:54:40 +0000
(19:54 -0600)
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>
drivers/soc/fsl/qbman/bman_ccsr.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/soc/fsl/qbman/bman_ccsr.c
b/drivers/soc/fsl/qbman/bman_ccsr.c
index 9deb0524543f01c4b4dd6c4c91b693537e0fd307..a8e8389a6894fbd5c277f9cc87f10de413d210df 100644
(file)
--- 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;