clk: Treat NULL as dummy clocks
NULL pointers should be treated as dummy clocks as done in the kernel.
Using a not fully filled in clk * array for of_clk_add_provider may result
in NULL clks. When these are passed into the clk framework we should not
crash.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 3d61b7b commit 85799d1b755ad3ea1fd80cecd913eea6b00a5c87
@Sascha Hauer Sascha Hauer authored on 5 Mar 2015
Showing 1 changed file
View
drivers/clk/clk.c