dm: core: Call clk_set_defaults() during probe() only for a valid ofnode
authorBin Meng <bmeng.cn@gmail.com>
Fri, 5 Jul 2019 16:23:16 +0000 (09:23 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 24 Jul 2019 19:54:08 +0000 (12:54 -0700)
commita1f99e46665855ade49935a813073860c26d2728
treec1eb5b02906c60d47898869beb0975869b4b3077
parent7efb4a6e09421a8ceaaaff61e28905ddec0c02a5
dm: core: Call clk_set_defaults() during probe() only for a valid ofnode

Without a valid ofnode, it's meaningless to call clk_set_defaults()
to process various properties.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c