soc: fsl/qe: Use of_get_child_by_name helper
authorRob Herring <robh@kernel.org>
Wed, 29 Aug 2018 20:04:25 +0000 (15:04 -0500)
committerLi Yang <leoyang.li@nxp.com>
Thu, 30 Aug 2018 17:01:28 +0000 (12:01 -0500)
commitf55f61225a2b98fd3eef56428edee767dc43d21d
treeb7542c48169a1239ab01b2d41159d04447f766f7
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
soc: fsl/qe: Use of_get_child_by_name helper

Use the of_get_child_by_name() helper instead of open coding searching
for the 'firmware' child node. This removes directly accessing the name
pointer as well.

Cc: Qiang Zhao <qiang.zhao@nxp.com>
Cc: Li Yang <leoyang.li@nxp.com>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Qiang Zhao <qiang.zhao@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/soc/fsl/qe/qe.c