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

clk: meson8b: fix clk81 register address

During meson8b clock probe, clk81 register address is fixed twice.
First using the meson8b_clk_gates array, then by directly changing
meson8b_clk81 register.

As a result meson8b_clk81.reg = HHI_MPEG_CLK_CNTL + clk_base + clk_base.

Fixed by just removing the second fixup.

Fixes: e31a1900c1ff ("meson: clk: Add support for clock gates")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Jerome Brunet and committed by
Stephen Boyd
340a84ce 88c9b70b

-1
-1
drivers/clk/meson/meson8b.c
··· 607 607 /* Populate the base address for the MPEG clks */ 608 608 meson8b_mpeg_clk_sel.reg = clk_base + (u32)meson8b_mpeg_clk_sel.reg; 609 609 meson8b_mpeg_clk_div.reg = clk_base + (u32)meson8b_mpeg_clk_div.reg; 610 - meson8b_clk81.reg = clk_base + (u32)meson8b_clk81.reg; 611 610 612 611 /* Populate base address for gates */ 613 612 for (i = 0; i < ARRAY_SIZE(meson8b_clk_gates); i++)