Skip to content

Commit 167483d

Browse files
masneybbebarino
authored andcommitted
clk: imx: composite-93: 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 a16f19d commit 167483d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/clk/imx/clk-composite-93.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@ imx93_clk_composite_divider_recalc_rate(struct clk_hw *hw, unsigned long parent_
9898
return clk_divider_ops.recalc_rate(hw, parent_rate);
9999
}
100100

101-
static long
102-
imx93_clk_composite_divider_round_rate(struct clk_hw *hw, unsigned long rate, unsigned long *prate)
103-
{
104-
return clk_divider_ops.round_rate(hw, rate, prate);
105-
}
106-
107101
static int
108102
imx93_clk_composite_divider_determine_rate(struct clk_hw *hw, struct clk_rate_request *req)
109103
{
@@ -141,7 +135,6 @@ static int imx93_clk_composite_divider_set_rate(struct clk_hw *hw, unsigned long
141135

142136
static const struct clk_ops imx93_clk_composite_divider_ops = {
143137
.recalc_rate = imx93_clk_composite_divider_recalc_rate,
144-
.round_rate = imx93_clk_composite_divider_round_rate,
145138
.determine_rate = imx93_clk_composite_divider_determine_rate,
146139
.set_rate = imx93_clk_composite_divider_set_rate,
147140
};

0 commit comments

Comments
 (0)