clk: sunxi: factors: Drop round_rate from clk ops
authorChen-Yu Tsai <wens@csie.org>
Mon, 25 Jan 2016 13:15:44 +0000 (21:15 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 29 Jan 2016 10:30:27 +0000 (11:30 +0100)
The common clock framework requires either determine_rate or round_rate
to be implemented. We use determine_rate so we can pass the parent index
to the get_factors callback. This cannot be done easily with round_rate,
so just drop it.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-factors.c

index 2927b09d5e0daaf9c45f5ba807edd68ab328c8e7..6e97f46c0c37bbf7d2ac32ac8e95803edea502ff 100644 (file)
@@ -89,21 +89,6 @@ static unsigned long clk_factors_recalc_rate(struct clk_hw *hw,
        return rate;
 }
 
-static long clk_factors_round_rate(struct clk_hw *hw, unsigned long rate,
-                                  unsigned long *parent_rate)
-{
-       struct clk_factors *factors = to_clk_factors(hw);
-       struct factors_request req = {
-               .rate = rate,
-               .parent_rate = *parent_rate,
-       };
-
-       factors->get_factors(&req);
-
-
-       return rate;
-}
-
 static int clk_factors_determine_rate(struct clk_hw *hw,
                                      struct clk_rate_request *req)
 {
@@ -189,7 +174,6 @@ static int clk_factors_set_rate(struct clk_hw *hw, unsigned long rate,
 static const struct clk_ops clk_factors_ops = {
        .determine_rate = clk_factors_determine_rate,
        .recalc_rate = clk_factors_recalc_rate,
-       .round_rate = clk_factors_round_rate,
        .set_rate = clk_factors_set_rate,
 };
 
This page took 0.026733 seconds and 5 git commands to generate.