mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
clk: ti: composite: convert from round_rate() to determine_rate()
The round_rate() clk ops is deprecated, so migrate this driver from round_rate() to determine_rate() using the Coccinelle semantic patch on the cover letter of this series. Tested-by: Anddreas Kemnade <andreas@kemnade.info> # OMAP3 GTA04, OMAP4 Panda Reviewed-by: Kevin Hilman <khilman@baylibre.com> Tested-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Brian Masney <bmasney@redhat.com>
This commit is contained in:
parent
e465ad7ef5
commit
849804453d
|
|
@ -26,8 +26,8 @@ static unsigned long ti_composite_recalc_rate(struct clk_hw *hw,
|
|||
return ti_clk_divider_ops.recalc_rate(hw, parent_rate);
|
||||
}
|
||||
|
||||
static long ti_composite_round_rate(struct clk_hw *hw, unsigned long rate,
|
||||
unsigned long *prate)
|
||||
static int ti_composite_determine_rate(struct clk_hw *hw,
|
||||
struct clk_rate_request *req)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
@ -40,7 +40,7 @@ static int ti_composite_set_rate(struct clk_hw *hw, unsigned long rate,
|
|||
|
||||
static const struct clk_ops ti_composite_divider_ops = {
|
||||
.recalc_rate = &ti_composite_recalc_rate,
|
||||
.round_rate = &ti_composite_round_rate,
|
||||
.determine_rate = &ti_composite_determine_rate,
|
||||
.set_rate = &ti_composite_set_rate,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user