Skip to content

Commit a16f19d

Browse files
masneybbebarino
authored andcommitted
clk: imx: composite-8m: remove round_rate() in favor of determine_rate()
This driver implements both the determine_rate() and round_rate() clk ops, and the round_rate() clk ops is deprecated. When both are defined, clk_core_determine_round_nolock() from the clk core will only use the determine_rate() clk ops, so let's remove the round_rate() clk ops since it's unused. Signed-off-by: Brian Masney <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Peng Fan <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 77923f7 commit a16f19d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

drivers/clk/imx/clk-composite-8m.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,6 @@ static int imx8m_clk_composite_compute_dividers(unsigned long rate,
7373
return ret;
7474
}
7575

76-
static long imx8m_clk_composite_divider_round_rate(struct clk_hw *hw,
77-
unsigned long rate,
78-
unsigned long *prate)
79-
{
80-
int prediv_value;
81-
int div_value;
82-
83-
imx8m_clk_composite_compute_dividers(rate, *prate,
84-
&prediv_value, &div_value);
85-
rate = DIV_ROUND_UP(*prate, prediv_value);
86-
87-
return DIV_ROUND_UP(rate, div_value);
88-
89-
}
90-
9176
static int imx8m_clk_composite_divider_set_rate(struct clk_hw *hw,
9277
unsigned long rate,
9378
unsigned long parent_rate)
@@ -153,7 +138,6 @@ static int imx8m_divider_determine_rate(struct clk_hw *hw,
153138

154139
static const struct clk_ops imx8m_clk_composite_divider_ops = {
155140
.recalc_rate = imx8m_clk_composite_divider_recalc_rate,
156-
.round_rate = imx8m_clk_composite_divider_round_rate,
157141
.set_rate = imx8m_clk_composite_divider_set_rate,
158142
.determine_rate = imx8m_divider_determine_rate,
159143
};

0 commit comments

Comments
 (0)