]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: qcom: gcc-msm8960: create tsens device if there are no child nodes
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 21 May 2022 15:14:36 +0000 (18:14 +0300)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 5 Jul 2022 02:58:39 +0000 (21:58 -0500)
commit93b793d88da8b2c7afd63c64772666ec4274efad
tree020bbe4122d5994c6320e67c30c35fc9c873147e
parent621f984840928f0bd14b20c86b70a15590ed2d3e
clk: qcom: gcc-msm8960: create tsens device if there are no child nodes

Currently gcc-msm8960 driver manually creates tsens platform device
manually. It would be better to follow IPQ8064 approach, where tsens
device is defined as gcc's child device in the device tree. If nothing
else, it removes gcc's dependency on QFPROM, thus allowing clock
controller to be probed earlier.

Don't create it in case there are available child nodes (tsens) inside
the gcc's device tree node.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220521151437.1489111-4-dmitry.baryshkov@linaro.org
drivers/clk/qcom/gcc-msm8960.c