Skip to content

Commit

Permalink
clk: mediatek: mt2701-vdec: fix conversion to mtk_clk_simple_probe
Browse files Browse the repository at this point in the history
Commit 973d160 ("clk: mediatek: mt2701: use mtk_clk_simple_probe to
simplify driver") broke DT bindings as the highest index was reduced by
1 because the id count starts from 1 and not from 0.

Fix this, like for other drivers which had the same issue, by adding a
dummy clk at index 0.

Fixes: 973d160 ("clk: mediatek: mt2701: use mtk_clk_simple_probe to simplify driver")
Cc: [email protected]
Signed-off-by: Daniel Golle <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
  • Loading branch information
dangowrt authored and frank-w committed Jan 25, 2025
1 parent a46c736 commit f776bf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/clk/mediatek/clk-mt2701-vdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ static const struct mtk_gate_regs vdec1_cg_regs = {
GATE_MTK(_id, _name, _parent, &vdec1_cg_regs, _shift, &mtk_clk_gate_ops_setclr_inv)

static const struct mtk_gate vdec_clks[] = {
GATE_DUMMY(CLK_DUMMY, "vdec_dummy"),
GATE_VDEC0(CLK_VDEC_CKGEN, "vdec_cken", "vdec_sel", 0),
GATE_VDEC1(CLK_VDEC_LARB, "vdec_larb_cken", "mm_sel", 0),
};
Expand Down

0 comments on commit f776bf8

Please sign in to comment.