[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191211150349.023552012@linuxfoundation.org>
Date: Wed, 11 Dec 2019 16:05:08 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Sean Wang <sean.wang@...iatek.com>,
Ryder Lee <ryder.lee@...iatek.com>,
Rob Herring <robh@...nel.org>,
Wenzhen Yu <wenzhen.yu@...iatek.com>,
Weiyi Lu <weiyi.lu@...iatek.com>,
Stephen Boyd <sboyd@...nel.org>
Subject: [PATCH 4.19 146/243] clk: mediatek: Drop __init from mtk_clk_register_cpumuxes()
From: Stephen Boyd <sboyd@...nel.org>
commit 28f1186a26f7e4e5df7be454710da26c810effb6 upstream.
This function is used from more places than just __init code. Removing
__init silences a section mismatch warning here.
Cc: Sean Wang <sean.wang@...iatek.com>
Cc: Ryder Lee <ryder.lee@...iatek.com>
Cc: Rob Herring <robh@...nel.org>
Cc: Wenzhen Yu <wenzhen.yu@...iatek.com>
Cc: Weiyi Lu <weiyi.lu@...iatek.com>
Signed-off-by: Stephen Boyd <sboyd@...nel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/clk/mediatek/clk-cpumux.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- 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_o
.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
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;
Powered by blists - more mailing lists