diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2018-06-19 17:47:53 +0200 |
---|---|---|
committer | Jerome Brunet <jbrunet@baylibre.com> | 2018-06-21 10:10:50 +0200 |
commit | 7813c14c9475dbebcd7f41bd498426d01255acf9 (patch) | |
tree | e063019e7fecfd6748b7b47d579e12b6f2adb12f | |
parent | c987ac6f1f088663b6dad39281071aeb31d450a8 (diff) | |
download | lwn-7813c14c9475dbebcd7f41bd498426d01255acf9.tar.gz lwn-7813c14c9475dbebcd7f41bd498426d01255acf9.zip |
clk: meson: audio-divider is one based
The audio divider is one based. This offset was mistakenly dropped from
recalc_rate() when migrating to clk_regmap.
Fixes: 88a4e1283681 ("clk: meson: migrate the audio divider clock to clk_regmap")
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
-rw-r--r-- | drivers/clk/meson/clk-audio-divider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/meson/clk-audio-divider.c b/drivers/clk/meson/clk-audio-divider.c index 58f546e04807..e4cf96ba704e 100644 --- a/drivers/clk/meson/clk-audio-divider.c +++ b/drivers/clk/meson/clk-audio-divider.c @@ -51,7 +51,7 @@ static unsigned long audio_divider_recalc_rate(struct clk_hw *hw, struct meson_clk_audio_div_data *adiv = meson_clk_audio_div_data(clk); unsigned long divider; - divider = meson_parm_read(clk->map, &adiv->div); + divider = meson_parm_read(clk->map, &adiv->div) + 1; return DIV_ROUND_UP_ULL((u64)parent_rate, divider); } |