drivers: clk: Handle gracefully NULL pointers
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Tue, 22 Oct 2019 12:00:03 +0000 (14:00 +0200)
committerLukasz Majewski <lukma@denx.de>
Tue, 22 Oct 2019 14:14:05 +0000 (16:14 +0200)
commit8a1661f20e6cdda682820eba9ccc79bff5a3d7f8
treea07d59642b0f8e6e4a7ec8806088df3c6e80d4a6
parent727fa4539ca2937fd3d8d748096af1145bdf2173
drivers: clk: Handle gracefully NULL pointers

Prepare the way for a managed CLK API by handling NULL pointers without
crashing nor failing.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
drivers/clk/clk-uclass.c
include/clk.h