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>
Showing
Please register or sign in to comment