summaryrefslogtreecommitdiff
path: root/drivers/clk/rockchip/clk.c
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2016-03-15 16:55:41 +0100
committerHeiko Stuebner <heiko@sntech.de>2016-05-09 16:04:15 +0200
commitc9c3c6eecc5533d14bb9bc82319257eb8bc52768 (patch)
treea639c8aca7f7e360a7d51c148da846c5fb9e8c98 /drivers/clk/rockchip/clk.c
parent6f339dc2719eb01448c70fe3d56287d1eb9bd67e (diff)
clk: rockchip: simplify GRF handling in pll clocks
With the previous commit, the clock drivers now know at init time if the GRF regmap is available. That means if it isn't available then, it also won't become available later and we can therefore switch PLLs, that need the GRF for the lock-status, to read-only mode - similar behaviour as the aborting of rate changes we did before. This saves some conditionals on every rate change and we can also drop the rockchip_clk_get_grf function completely. Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'drivers/clk/rockchip/clk.c')
-rw-r--r--drivers/clk/rockchip/clk.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c
index 9f99a4213d02..7ffd134995f2 100644
--- a/drivers/clk/rockchip/clk.c
+++ b/drivers/clk/rockchip/clk.c
@@ -365,11 +365,6 @@ void __init rockchip_clk_of_add_provider(struct device_node *np,
pr_err("%s: could not register clk provider\n", __func__);
}
-struct regmap *rockchip_clk_get_grf(struct rockchip_clk_provider *ctx)
-{
- return ctx->grf;
-}
-
void rockchip_clk_add_lookup(struct rockchip_clk_provider *ctx,
struct clk *clk, unsigned int id)
{