Subject: [PATCH 1/2] clk: mediatek: Drop __init from mtk_clk_register_cpumuxes()

From: Stephen Boyd <[email-masked]>
Date: Fri, 30 Nov 2018 00:41:02 -0800

This function is used from more places than just __init code. Removing
__init silences a section mismatch warning here.

Cc: Sean Wang <[email-masked]>
Cc: Ryder Lee <[email-masked]>
Cc: Rob Herring <[email-masked]>
Cc: Wenzhen Yu <[email-masked]>
Cc: Weiyi Lu <[email-masked]>
Signed-off-by: Stephen Boyd <[email-masked]>
---
 drivers/clk/mediatek/clk-cpumux.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/clk/mediatek/clk-cpumux.c b/drivers/clk/mediatek/clk-cpumux.c
index 16e56772d280..6c7eaa21e662 100644
--- a/drivers/clk/mediatek/clk-cpumux.c
+++ b/drivers/clk/mediatek/clk-cpumux.c
@@ -53,7 +53,7 @@ static const struct clk_ops clk_cpumux_ops = {
 	.set_parent = clk_cpumux_set_parent,
 };
 
-static struct clk __init *
+static struct clk *
 mtk_clk_register_cpumux(const struct mtk_composite *mux,
 			struct regmap *regmap)
 {
@@ -84,9 +84,9 @@ mtk_clk_register_cpumux(const struct mtk_composite *mux,
 	return clk;
 }
 
-int __init mtk_clk_register_cpumuxes(struct device_node *node,
-				     const struct mtk_composite *clks, int num,
-				     struct clk_onecell_data *clk_data)
+int mtk_clk_register_cpumuxes(struct device_node *node,
+			      const struct mtk_composite *clks, int num,
+			      struct clk_onecell_data *clk_data)
 {
 	int i;
 	struct clk *clk;
-- 
Sent by a computer through tubes

_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel