diff options
author | Stephen Boyd | 2015-07-30 17:20:57 -0700 |
---|---|---|
committer | Michael Turquette | 2015-08-24 16:48:56 -0700 |
commit | 1b14afa64d2ef36f228e9540664586fd7ad67a81 (patch) | |
tree | 4c53c37c12554ae285d1c3decb65f13a507cd160 /drivers/clk/sunxi/clk-sun6i-ar100.c | |
parent | b73d616d5bd0bb94b3fe1374edad05253fe3684f (diff) |
clk: sunxi: Convert to clk_hw based provider APIs
We're removing struct clk from the clk provider API, so switch
this code to using the clk_hw based provider APIs.
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: "Emilio López" <emilio@elopez.com.ar>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/sunxi/clk-sun6i-ar100.c')
-rw-r--r-- | drivers/clk/sunxi/clk-sun6i-ar100.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clk/sunxi/clk-sun6i-ar100.c b/drivers/clk/sunxi/clk-sun6i-ar100.c index 3a9459197f9b..806fd019c05d 100644 --- a/drivers/clk/sunxi/clk-sun6i-ar100.c +++ b/drivers/clk/sunxi/clk-sun6i-ar100.c @@ -56,12 +56,12 @@ static int ar100_determine_rate(struct clk_hw *hw, for (i = 0; i < nparents; i++) { unsigned long parent_rate; unsigned long tmp_rate; - struct clk *parent; + struct clk_hw *parent; unsigned long div; int shift; - parent = clk_get_parent_by_index(hw->clk, i); - parent_rate = __clk_get_rate(parent); + parent = clk_hw_get_parent_by_index(hw, i); + parent_rate = clk_hw_get_rate(parent); div = DIV_ROUND_UP(parent_rate, req->rate); /* @@ -99,7 +99,7 @@ static int ar100_determine_rate(struct clk_hw *hw, tmp_rate = (parent_rate >> shift) / div; if (!req->best_parent_hw || tmp_rate > best_rate) { - req->best_parent_hw = __clk_get_hw(parent); + req->best_parent_hw = parent; req->best_parent_rate = parent_rate; best_rate = tmp_rate; } |