summaryrefslogtreecommitdiff
path: root/drivers/clk/mediatek/clk-gate.c
diff options
context:
space:
mode:
authorJames Liao <jamesjj.liao@mediatek.com>2015-07-28 10:37:34 +0300
committerJames Liao <jamesjj.liao@mediatek.com>2015-10-01 07:04:49 +0300
commite02940fc9ed323ae512f3ded62abaf9d6a3d3265 (patch)
tree29d6a642c135c6f6b1e6147855ffd8741b48c73b /drivers/clk/mediatek/clk-gate.c
parent07d130698b8e1ecf1a72d294b5f89a26fea1ec6f (diff)
downloadlinux-e02940fc9ed323ae512f3ded62abaf9d6a3d3265.tar.xz
clk: mediatek: Add __initdata and __init for data and functions
Add __init for clock registration functions, and add __initdata for mtk_gate_regs initial structures. Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Diffstat (limited to 'drivers/clk/mediatek/clk-gate.c')
-rw-r--r--drivers/clk/mediatek/clk-gate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/mediatek/clk-gate.c b/drivers/clk/mediatek/clk-gate.c
index 57020368a693..576bdb7c98b8 100644
--- a/drivers/clk/mediatek/clk-gate.c
+++ b/drivers/clk/mediatek/clk-gate.c
@@ -97,7 +97,7 @@ const struct clk_ops mtk_clk_gate_ops_setclr_inv = {
.disable = mtk_cg_disable_inv,
};
-struct clk *mtk_clk_register_gate(
+struct clk * __init mtk_clk_register_gate(
const char *name,
const char *parent_name,
struct regmap *regmap,