dm: clk: ignore default settings when node not valid
authorPeng Fan <peng.fan@nxp.com>
Wed, 31 Jul 2019 07:01:49 +0000 (07:01 +0000)
committerLukasz Majewski <lukma@denx.de>
Wed, 31 Jul 2019 07:20:51 +0000 (09:20 +0200)
commit91944ef09d603f6aa41649b2a1fdd64fea9651f9
tree1608b5c8110e36bf310ba24011c956bb02ccf0e9
parent4b91ec076d800b3ca535dfd99b79798094bd4e52
dm: clk: ignore default settings when node not valid

When the device not binded with a node, we need ignore
the parents and rate settings.

Cc: Simon Glass <sjg@chromium.org>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Andreas Dannenberg <dannenberg@ti.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/clk-uclass.c