summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2016-08-05 10:56:41 +0200
committerScott Wood <oss@buserror.net>2016-09-25 02:38:51 -0500
commit74c269f69cdae83253be7f65840dd1ae589d5e99 (patch)
tree0ed7d6e89891c5871dec045dd1132c0c9cd62bb9
parent7120438e5d82f445acbfe131a1b58eab7e83fa33 (diff)
downloadlinux-74c269f69cdae83253be7f65840dd1ae589d5e99.tar.gz
linux-74c269f69cdae83253be7f65840dd1ae589d5e99.tar.bz2
linux-74c269f69cdae83253be7f65840dd1ae589d5e99.zip
fsl/qe: use of_property_read_bool
Use of_property_read_bool to check for the existence of a property. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression e1,e2; statement S2,S1; @@ - if (of_get_property(e1,e2,NULL)) + if (of_property_read_bool(e1,e2)) S1 else S2 // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Scott Wood <oss@buserror.net>
-rw-r--r--drivers/soc/fsl/qe/qe_tdm.c2
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 124e222a0d18..a1048b44e6b9 100644
--- a/drivers/soc/fsl/qe/qe_tdm.c
+++ b/drivers/soc/fsl/qe/qe_tdm.c
@@ -99,7 +99,7 @@ int ucc_of_parse_tdm(struct device_node *np, struct ucc_tdm *utdm,
utdm->tdm_port = val;
ut_info->uf_info.tdm_num = utdm->tdm_port;
- if (of_get_property(np, "fsl,tdm-internal-loopback", NULL))
+ if (of_property_read_bool(np, "fsl,tdm-internal-loopback"))
utdm->tdm_mode = TDM_INTERNAL_LOOPBACK;
else
utdm->tdm_mode = TDM_NORMAL;