summaryrefslogtreecommitdiffstats
path: root/drivers/clk/qcom/common.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2016-11-11 01:50:16 +0100
committerStephen Boyd <sboyd@codeaurora.org>2016-11-11 01:50:16 +0100
commit81ab3279c5e1db8e61536646f1150cf66d8d5bad (patch)
tree28cbd4048e92f196c60b77e27d6f90c71fd124d4 /drivers/clk/qcom/common.c
parentMerge branch 'clk-qcom-8994' into clk-next (diff)
parentclk: qcom: Add support for RPM Clocks (diff)
downloadlinux-81ab3279c5e1db8e61536646f1150cf66d8d5bad.tar.xz
linux-81ab3279c5e1db8e61536646f1150cf66d8d5bad.zip
Merge branch 'clk-qcom-rpm' into clk-next
* clk-qcom-rpm: clk: qcom: Add support for RPM Clocks clk: qcom: Add support for SMD-RPM Clocks clk: qcom: Always add factor clock for xo clocks
Diffstat (limited to 'drivers/clk/qcom/common.c')
-rw-r--r--drivers/clk/qcom/common.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c
index 6ec81bd92611..94569f461ba7 100644
--- a/drivers/clk/qcom/common.c
+++ b/drivers/clk/qcom/common.c
@@ -174,15 +174,12 @@ int qcom_cc_register_board_clk(struct device *dev, const char *path,
const char *name, unsigned long rate)
{
bool add_factor = true;
- struct device_node *node;
-
- /* The RPM clock driver will add the factor clock if present */
- if (IS_ENABLED(CONFIG_QCOM_RPMCC)) {
- node = of_find_compatible_node(NULL, NULL, "qcom,rpmcc");
- if (of_device_is_available(node))
- add_factor = false;
- of_node_put(node);
- }
+
+ /*
+ * TODO: The RPM clock driver currently does not support the xo clock.
+ * When xo is added to the RPM clock driver, we should change this
+ * function to skip registration of xo factor clocks.
+ */
return _qcom_cc_register_board_clk(dev, path, name, rate, add_factor);
}