diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 6482fecad..b80ba2243 100755 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -427,6 +427,9 @@ static struct clk_core *clk_core_get(struct clk_core *core, u8 p_index) if (IS_ERR(hw)) return ERR_CAST(hw); + if (!hw) + return NULL; + return hw->core; }