mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-14 01:08:23 +01:00
50 lines
1.4 KiB
Diff
50 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Samuel Holland <samuel@sholland.org>
|
|
Date: Mon, 30 Dec 2019 12:39:31 -0600
|
|
Subject: [PATCH] Revert "clk: qcom: Support 'protected-clocks' property"
|
|
|
|
Now that protected-clocks is handled in the clk core, this
|
|
driver-specific implementation is redundant.
|
|
|
|
This reverts commit b181b3b801da8893c8eb706e448dd5111b02de60.
|
|
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
---
|
|
drivers/clk/qcom/common.c | 18 ------------------
|
|
1 file changed, 18 deletions(-)
|
|
|
|
--- a/drivers/clk/qcom/common.c
|
|
+++ b/drivers/clk/qcom/common.c
|
|
@@ -194,22 +194,6 @@ int qcom_cc_register_sleep_clk(struct de
|
|
}
|
|
EXPORT_SYMBOL_GPL(qcom_cc_register_sleep_clk);
|
|
|
|
-/* Drop 'protected-clocks' from the list of clocks to register */
|
|
-static void qcom_cc_drop_protected(struct device *dev, struct qcom_cc *cc)
|
|
-{
|
|
- struct device_node *np = dev->of_node;
|
|
- struct property *prop;
|
|
- const __be32 *p;
|
|
- u32 i;
|
|
-
|
|
- of_property_for_each_u32(np, "protected-clocks", prop, p, i) {
|
|
- if (i >= cc->num_rclks)
|
|
- continue;
|
|
-
|
|
- cc->rclks[i] = NULL;
|
|
- }
|
|
-}
|
|
-
|
|
static struct clk_hw *qcom_cc_clk_hw_get(struct of_phandle_args *clkspec,
|
|
void *data)
|
|
{
|
|
@@ -272,8 +256,6 @@ int qcom_cc_really_probe(struct platform
|
|
cc->rclks = rclks;
|
|
cc->num_rclks = num_clks;
|
|
|
|
- qcom_cc_drop_protected(dev, cc);
|
|
-
|
|
for (i = 0; i < num_clk_hws; i++) {
|
|
ret = devm_clk_hw_register(dev, clk_hws[i]);
|
|
if (ret)
|