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

Configure Feed

Select the types of activity you want to include in your feed.

clk: mediatek: clk-mux: Do not pass flags to clk_mux_determine_rate_flags()

The `flags` in |struct mtk_mux| are core clk flags, not mux clk flags.
Passing one to the other is wrong.

Since there aren't any actual users adding CLK_MUX_* flags, just drop it
for now.

Fixes: b05ea3314390 ("clk: mediatek: clk-mux: Add .determine_rate() callback")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Chen-Yu Tsai and committed by
Stephen Boyd
5e121370 cc5f9cfb

+1 -3
+1 -3
drivers/clk/mediatek/clk-mux.c
··· 146 146 static int mtk_clk_mux_determine_rate(struct clk_hw *hw, 147 147 struct clk_rate_request *req) 148 148 { 149 - struct mtk_clk_mux *mux = to_mtk_clk_mux(hw); 150 - 151 - return clk_mux_determine_rate_flags(hw, req, mux->data->flags); 149 + return clk_mux_determine_rate_flags(hw, req, 0); 152 150 } 153 151 154 152 const struct clk_ops mtk_mux_clr_set_upd_ops = {