OSDN Git Service

clk: mediatek: Make mtk_clk_register_mux() a static function
authorWeiyi Lu <weiyi.lu@mediatek.com>
Fri, 13 Nov 2020 08:29:52 +0000 (16:29 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 17 Dec 2020 08:41:54 +0000 (00:41 -0800)
mtk_clk_register_mux() should be a static function

Fixes: a3ae549917f16 ("clk: mediatek: Add new clkmux register API")
Signed-off-by: Weiyi Lu <weiyi.lu@mediatek.com>
Link: https://lore.kernel.org/r/1605256192-31307-1-git-send-email-weiyi.lu@mediatek.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mux.c
drivers/clk/mediatek/clk-mux.h

index 14e127e..dcc1352 100644 (file)
@@ -155,7 +155,7 @@ const struct clk_ops mtk_mux_gate_clr_set_upd_ops = {
        .set_parent = mtk_clk_mux_set_parent_setclr_lock,
 };
 
-struct clk *mtk_clk_register_mux(const struct mtk_mux *mux,
+static struct clk *mtk_clk_register_mux(const struct mtk_mux *mux,
                                 struct regmap *regmap,
                                 spinlock_t *lock)
 {
index f5625f4..8e2f927 100644 (file)
@@ -77,10 +77,6 @@ extern const struct clk_ops mtk_mux_gate_clr_set_upd_ops;
                        _width, _gate, _upd_ofs, _upd,                  \
                        CLK_SET_RATE_PARENT)
 
-struct clk *mtk_clk_register_mux(const struct mtk_mux *mux,
-                                struct regmap *regmap,
-                                spinlock_t *lock);
-
 int mtk_clk_register_muxes(const struct mtk_mux *muxes,
                           int num, struct device_node *node,
                           spinlock_t *lock,