dm: core: Move "/clock" node scan into function
authorRajan Vaja <rajan.vaja@xilinx.com>
Fri, 10 Aug 2018 08:45:33 +0000 (01:45 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Sep 2018 14:12:21 +0000 (08:12 -0600)
commit68d215d907b1512a8089f47a9d47d02a9a3b179e
tree0c9ca7de2f58cab7afdefc7816716628dd4ff9c5
parentd2166319df17286b2a3e2a1a7ce89f01e4f8bac9
dm: core: Move "/clock" node scan into function

Create separate function for scanning node by path and
move "/clock" node scan code into that function.

This will be usable if scanning of more node is required.

Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/root.c