diff options
author | Vaishali Thakkar <vaishali.thakkar@oracle.com> | 2016-09-24 02:40:06 -0400 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-09-24 23:46:55 -0400 |
commit | 40f1ebd4e0997e81ac2eb3b2f64d6133051afe86 (patch) | |
tree | e7d7e38abee62bafff6f438401d1552cf09c6dd9 | |
parent | f1a55ce0544251746d9b52fb85ad32f31a43fbd2 (diff) |
soc/fsl/qe: Use resource_size
Use the function resource_size instead of explicit computation.
Problem found using Coccinelle.
Signed-off-by: Vaishali Thakkar <vaishali.thakkar@oracle.com>
Signed-off-by: Scott Wood <oss@buserror.net>
-rw-r--r-- | drivers/soc/fsl/qe/qe_tdm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/fsl/qe/qe_tdm.c b/drivers/soc/fsl/qe/qe_tdm.c index 5e48b1470178..124e222a0d18 100644 --- a/drivers/soc/fsl/qe/qe_tdm.c +++ b/drivers/soc/fsl/qe/qe_tdm.c | |||
@@ -167,7 +167,7 @@ int ucc_of_parse_tdm(struct device_node *np, struct ucc_tdm *utdm, | |||
167 | } | 167 | } |
168 | 168 | ||
169 | if (siram_init_flag == 0) { | 169 | if (siram_init_flag == 0) { |
170 | memset_io(utdm->siram, 0, res->end - res->start + 1); | 170 | memset_io(utdm->siram, 0, resource_size(res)); |
171 | siram_init_flag = 1; | 171 | siram_init_flag = 1; |
172 | } | 172 | } |
173 | 173 | ||