clk: fix the console output of clk_register
authorDario Binacchi <dariobin@libero.it>
Sat, 2 May 2020 15:38:11 +0000 (17:38 +0200)
committerLukasz Majewski <lukma@denx.de>
Mon, 24 Aug 2020 09:03:26 +0000 (11:03 +0200)
commit7b0830d41f9e0350207ae3f5137ad8c50731374b
tree23e3aff932a96c6918d1fca7b0f8efccd1b72516
parent16bdc85b488dd2f9463a71d6aa09bdf5ea9a9978
clk: fix the console output of clk_register

The parent->name variable can be used only in case the
uclass_get_device_by_name routine returns successfully.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
drivers/clk/clk.c