Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

interconnect: qcom: rpm: Use _optional func for provider clocks

It turned out that - very unfortunately - msm8996 needs a binding
update, adding 2 more clocks to the A2NoC node. Use the _optional
variant of devm_clk_get to make sure old DTs will still probe with
newer versions of the driver.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> #db820c
Link: https://lore.kernel.org/r/20221210200353.418391-5-konrad.dybcio@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>

authored by

Konrad Dybcio and committed by
Georgi Djakov
dd42ec8e 4be39d5d

+1 -1
+1 -1
drivers/interconnect/qcom/icc-rpm.c
··· 488 488 } 489 489 490 490 regmap_done: 491 - ret = devm_clk_bulk_get(dev, qp->num_clks, qp->bus_clks); 491 + ret = devm_clk_bulk_get_optional(dev, qp->num_clks, qp->bus_clks); 492 492 if (ret) 493 493 return ret; 494 494