提交 40f1ebd4 编写于 作者: V Vaishali Thakkar 提交者: Scott Wood

soc/fsl/qe: Use resource_size

Use the function resource_size instead of explicit computation.

Problem found using Coccinelle.
Signed-off-by: NVaishali Thakkar <vaishali.thakkar@oracle.com>
Signed-off-by: NScott Wood <oss@buserror.net>
上级 f1a55ce0
...@@ -167,7 +167,7 @@ int ucc_of_parse_tdm(struct device_node *np, struct ucc_tdm *utdm, ...@@ -167,7 +167,7 @@ int ucc_of_parse_tdm(struct device_node *np, struct ucc_tdm *utdm,
} }
if (siram_init_flag == 0) { if (siram_init_flag == 0) {
memset_io(utdm->siram, 0, res->end - res->start + 1); memset_io(utdm->siram, 0, resource_size(res));
siram_init_flag = 1; siram_init_flag = 1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册