mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Scott Wood <[email protected]>
This commit is contained in:
parent
c9492b4bea
commit
d754442416
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue