Skip to content

Commit dd42ec8

Browse files
konradybcioGeorgi Djakov
authored andcommitted
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 <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Tested-by: Dmitry Baryshkov <[email protected]> #db820c Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent 4be39d5 commit dd42ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/interconnect/qcom/icc-rpm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ int qnoc_probe(struct platform_device *pdev)
488488
}
489489

490490
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);
492492
if (ret)
493493
return ret;
494494

0 commit comments

Comments
 (0)