clk: qcom: common: Return NULL from clk_hw OF provider
authorTaniya Das <tdas@codeaurora.org>
Mon, 14 Oct 2019 10:23:05 +0000 (15:53 +0530)
committerStephen Boyd <sboyd@kernel.org>
Thu, 7 Nov 2019 21:10:44 +0000 (13:10 -0800)
commitffe37ede0a9eb524162c683f48da8558d5323ddb
treeccbf90cc83b1bb3dfb64506695cd18d9aaee6fdd
parent1a1c78217a779eadc6ef75d0dfb5f33088c6b481
clk: qcom: common: Return NULL from clk_hw OF provider

Return NULL in the cases where the clk_hw is not registered with the
clock provider, but the clock consumer still requests for a clock id.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lkml.kernel.org/r/20191014102308.27441-3-tdas@codeaurora.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/common.c