summaryrefslogtreecommitdiffstats
path: root/drivers/clk/qcom/gcc-msm8917.c
diff options
context:
space:
mode:
authorLuo Jie <quic_luoj@quicinc.com>2024-06-05 14:45:40 +0200
committerBjorn Andersson <andersson@kernel.org>2024-06-13 06:04:26 +0200
commit9f93a0a428606341da25bf2a00244701b58e08b9 (patch)
treed6054760e2a6312b9f26164ca71d003cd71cd36b /drivers/clk/qcom/gcc-msm8917.c
parentdt-bindings: clock: add qca8386/qca8084 clock and reset definitions (diff)
downloadlinux-9f93a0a428606341da25bf2a00244701b58e08b9.tar.xz
linux-9f93a0a428606341da25bf2a00244701b58e08b9.zip
clk: qcom: common: commonize qcom_cc_really_probe
The previous wrapper qcom_cc_really_probe takes the platform device as parameter, which is limited to platform driver. As for qca8k clock controller driver, which is registered as the MDIO device, which also follows the qcom clock framework. To commonize qcom_cc_really_probe, updating it to take the struct device as parameter, so that the qcom_cc_really_probe can be utilized by the previous platform device and the new added MDIO device. Also update the current clock controller drivers to take &pdev->dev as parameter when calling qcom_cc_really_probe. Reviewed-by: Stephen Boyd <sboyd@kernel.org> Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Luo Jie <quic_luoj@quicinc.com> Link: https://lore.kernel.org/r/20240605124541.2711467-4-quic_luoj@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/clk/qcom/gcc-msm8917.c')
-rw-r--r--drivers/clk/qcom/gcc-msm8917.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/qcom/gcc-msm8917.c b/drivers/clk/qcom/gcc-msm8917.c
index f2b8729e4198..3e2a2ae2ee6e 100644
--- a/drivers/clk/qcom/gcc-msm8917.c
+++ b/drivers/clk/qcom/gcc-msm8917.c
@@ -3270,7 +3270,7 @@ static int gcc_msm8917_probe(struct platform_device *pdev)
clk_alpha_pll_configure(&gpll3_early, regmap, &gpll3_early_config);
- return qcom_cc_really_probe(pdev, gcc_desc, regmap);
+ return qcom_cc_really_probe(&pdev->dev, gcc_desc, regmap);
}
static const struct of_device_id gcc_msm8917_match_table[] = {