Advertisement
Guest User

clk audio divider oops

a guest
May 29th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. diff --git a/drivers/clk/meson/clk-audio-divider.c b/drivers/clk/meson/clk-audio-divider.c
  2. index 58f546e04807..e4cf96ba704e 100644
  3. --- a/drivers/clk/meson/clk-audio-divider.c
  4. +++ b/drivers/clk/meson/clk-audio-divider.c
  5. @@ -51,7 +51,7 @@ static unsigned long audio_divider_recalc_rate(struct clk_hw *hw,
  6. struct meson_clk_audio_div_data *adiv = meson_clk_audio_div_data(clk);
  7. unsigned long divider;
  8.  
  9. - divider = meson_parm_read(clk->map, &adiv->div);
  10. + divider = meson_parm_read(clk->map, &adiv->div) + 1;
  11.  
  12. return DIV_ROUND_UP_ULL((u64)parent_rate, divider);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement