Commit 928f3bfb authored by James Liao's avatar James Liao Committed by Stephen Boyd

clk: mediatek: remove __init from clk registration functions

Remove __init from functions that will be used by init functions
that support probe deferral.
Signed-off-by: default avatarJames Liao <jamesjj.liao@mediatek.com>
Signed-off-by: default avatarErin Lo <erin.lo@mediatek.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 944b9a41
......@@ -97,7 +97,7 @@ const struct clk_ops mtk_clk_gate_ops_setclr_inv = {
.disable = mtk_cg_disable_inv,
};
struct clk * __init mtk_clk_register_gate(
struct clk *mtk_clk_register_gate(
const char *name,
const char *parent_name,
struct regmap *regmap,
......
......@@ -24,7 +24,7 @@
#include "clk-mtk.h"
#include "clk-gate.h"
struct clk_onecell_data * __init mtk_alloc_clk_data(unsigned int clk_num)
struct clk_onecell_data *mtk_alloc_clk_data(unsigned int clk_num)
{
int i;
struct clk_onecell_data *clk_data;
......@@ -49,7 +49,7 @@ struct clk_onecell_data * __init mtk_alloc_clk_data(unsigned int clk_num)
return NULL;
}
void __init mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks,
void mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks,
int num, struct clk_onecell_data *clk_data)
{
int i;
......@@ -72,7 +72,7 @@ void __init mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks,
}
}
void __init mtk_clk_register_factors(const struct mtk_fixed_factor *clks,
void mtk_clk_register_factors(const struct mtk_fixed_factor *clks,
int num, struct clk_onecell_data *clk_data)
{
int i;
......@@ -95,7 +95,7 @@ void __init mtk_clk_register_factors(const struct mtk_fixed_factor *clks,
}
}
int __init mtk_clk_register_gates(struct device_node *node,
int mtk_clk_register_gates(struct device_node *node,
const struct mtk_gate *clks,
int num, struct clk_onecell_data *clk_data)
{
......@@ -135,7 +135,7 @@ int __init mtk_clk_register_gates(struct device_node *node,
return 0;
}
struct clk * __init mtk_clk_register_composite(const struct mtk_composite *mc,
struct clk *mtk_clk_register_composite(const struct mtk_composite *mc,
void __iomem *base, spinlock_t *lock)
{
struct clk *clk;
......@@ -222,7 +222,7 @@ struct clk * __init mtk_clk_register_composite(const struct mtk_composite *mc,
return ERR_PTR(ret);
}
void __init mtk_clk_register_composites(const struct mtk_composite *mcs,
void mtk_clk_register_composites(const struct mtk_composite *mcs,
int num, void __iomem *base, spinlock_t *lock,
struct clk_onecell_data *clk_data)
{
......
......@@ -313,7 +313,7 @@ static struct clk *mtk_clk_register_pll(const struct mtk_pll_data *data,
return clk;
}
void __init mtk_clk_register_plls(struct device_node *node,
void mtk_clk_register_plls(struct device_node *node,
const struct mtk_pll_data *plls, int num_plls, struct clk_onecell_data *clk_data)
{
void __iomem *base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment