Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3 -3
+3 -3
drivers/clk/ti/composite.c
··· 26 26 return ti_clk_divider_ops.recalc_rate(hw, parent_rate); 27 27 } 28 28 29 - static long ti_composite_round_rate(struct clk_hw *hw, unsigned long rate, 30 - unsigned long *prate) 29 + static int ti_composite_determine_rate(struct clk_hw *hw, 30 + struct clk_rate_request *req) 31 31 { 32 32 return -EINVAL; 33 33 } ··· 40 40 41 41 static const struct clk_ops ti_composite_divider_ops = { 42 42 .recalc_rate = &ti_composite_recalc_rate, 43 - .round_rate = &ti_composite_round_rate, 43 + .determine_rate = &ti_composite_determine_rate, 44 44 .set_rate = &ti_composite_set_rate, 45 45 }; 46 46