diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-09 10:37:14 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-12 08:31:47 +0100 |
commit | d2058ab2a1f35c231beabec7511288c51ff72ced (patch) | |
tree | 4f6b891c72c0c16e065706f8a1096cc6cf8717c4 /drivers/clk | |
parent | 8e17d2f7222083f27d8451dba8afa3407ecfeddd (diff) | |
download | barebox-d2058ab2a1f35c231beabec7511288c51ff72ced.tar.gz barebox-d2058ab2a1f35c231beabec7511288c51ff72ced.tar.xz |
clk: imx: Avoid missing prototype warnings
clk_gate2_free() is unused, so remove it. clk_gate2_alloc() is only
used locally, so make it static.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/imx/clk-gate2.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index f2e704cdb2..8d5ed7e05c 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c @@ -87,7 +87,7 @@ static struct clk_ops clk_gate2_ops = { .is_enabled = clk_gate2_is_enabled, }; -struct clk *clk_gate2_alloc(const char *name, const char *parent, +static struct clk *clk_gate2_alloc(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 cgr_val, unsigned long flags) { @@ -106,13 +106,6 @@ struct clk *clk_gate2_alloc(const char *name, const char *parent, return &g->clk; } -void clk_gate2_free(struct clk *clk) -{ - struct clk_gate2 *g = to_clk_gate2(clk); - - free(g); -} - struct clk *clk_gate2(const char *name, const char *parent, void __iomem *reg, u8 shift, u8 cgr_val, unsigned long flags) { |