]> asedeno.scripts.mit.edu Git - linux.git/commit
soc: fsl: qe: introduce qe_get_device_node helper
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Mon, 13 May 2019 11:14:57 +0000 (11:14 +0000)
committerLi Yang <leoyang.li@nxp.com>
Wed, 5 Jun 2019 19:26:14 +0000 (14:26 -0500)
commitd7fc5963664198d25ca525f120f72ff053ba334f
tree24bb8ebcf4f61f603a38c63d90450c4b75ad1edc
parent875f2aabfcfa321dd39298849e3833b44ee54b4d
soc: fsl: qe: introduce qe_get_device_node helper

The 'try of_find_compatible_node(NULL, NULL, "fsl,qe"), fall back to
of_find_node_by_type(NULL, "qe")' pattern is repeated five
times. Factor it into a common helper.

Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Qiang Zhao <qiang.zhao@nxp.com>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/soc/fsl/qe/qe.c