clk: sunxi: Fix sun6i_ahb1_clk_determine_rate clock to return clk_hw
PATCH 1/1 clk: sunxi: Fix sun6i_ahb1_clk_determine_rate clock to return clk_hw
The determine_rate clock op callback was changed to return clk_hw in commit 646cafc6aa4d ("clk: Change clk_ops->determine_rate to return a clk_hw as the best parent"). This fixes the sun6i AHB1 clock driver.
---
Hi Maxime,
Since you've queued the sun6i ahb1 patches for 3.20, but haven't published them, could you squash this one in when you do?
--- drivers/clk/sunxi/clk-sunxi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/sunxi/clk-sunxi.c +2 -2
@@ -120,7 +120,7 @@ static long sun6i_ahb1_clk_round(unsigned long rate, u8 *divp, u8 *pre_divp,static long sun6i_ahb1_clk_determine_rate (struct clk_hw *hw,unsigned long rate,unsigned long *best_parent_rate, -struct clk **best_parent_clk) +struct clk_hw **best_parent_clk) {struct clk *clk = hw->clk, *parent, *best_parent =NULL ;int i, num_parents;
@@ -148,7 +148,7 @@ static long sun6i_ahb1_clk_determine_rate(struct clk_hw *hw, unsigned long rate, }if (best_parent) - *best_parent_clk = best_parent; + *best_parent_clk =__clk_get_hw (best_parent); *best_parent_rate = best;return best_child_rate;
Signature · 1 line
2.1.3
Maxime Ripard
AppliedPATCH 1/1 clk: sunxi: Fix sun6i_ahb1_clk_determine_rate clock to return clk_hw
Quoted 4 lines · Chen-Yu Tsai
The
determine_rateclock op callback was changed to returnclk_hwin commit646cafc6aa4d("clk: Changeclk_ops->determine_rateto return aclk_hwas the best parent"). This fixes the sun6i AHB1 clock driver.
Quoted 8 lines
Fixes 544473f clk: sunxi: unify sun6i AHB1 clock with proper PLL6 pre-dividerSigned-off-by Chen-Yu Tsai <[email protected]>---
Hi Maxime,
Since you've queued the sun6i ahb1 patches for 3.20, but haven't published them, could you squash this one in when you do?
Applied, thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20141217/3de83379/attachment.sig>