mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
clk: qcom: common: Add support to register rcg dfs in qcom_cc_really_probe
Add support to register the rcg dfs in qcom_cc_really_probe(). This allows users to move the call from the probe function to static properties. Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/r/20250715-sm7635-clocks-v3-1-18f9faac4984@fairphone.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
eb1af6ee48
commit
b21b5b3ae0
@@ -390,6 +390,16 @@ int qcom_cc_really_probe(struct device *dev,
|
||||
goto put_rpm;
|
||||
}
|
||||
|
||||
if (desc->driver_data &&
|
||||
desc->driver_data->dfs_rcgs &&
|
||||
desc->driver_data->num_dfs_rcgs) {
|
||||
ret = qcom_cc_register_rcg_dfs(regmap,
|
||||
desc->driver_data->dfs_rcgs,
|
||||
desc->driver_data->num_dfs_rcgs);
|
||||
if (ret)
|
||||
goto put_rpm;
|
||||
}
|
||||
|
||||
cc->rclks = rclks;
|
||||
cc->num_rclks = num_clks;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user