Commit 2bb5d1b8 authored by Stephen Boyd's avatar Stephen Boyd

clk: gpio-gate: Don't export __init functions

This function is marked as __init, so exposing it to modules
doesn't make any sense and it isn't used by modules anyway.

drivers/clk/clk-gpio-gate.c:192:13: warning: symbol 'of_gpio_gate_clk_setup' was not declared. Should it be static?

Cc: Jyri Sarha <jsarha@ti.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent d122db7e
...@@ -189,7 +189,7 @@ static struct clk *of_clk_gpio_gate_delayed_register_get( ...@@ -189,7 +189,7 @@ static struct clk *of_clk_gpio_gate_delayed_register_get(
/** /**
* of_gpio_gate_clk_setup() - Setup function for gpio controlled clock * of_gpio_gate_clk_setup() - Setup function for gpio controlled clock
*/ */
void __init of_gpio_gate_clk_setup(struct device_node *node) static void __init of_gpio_gate_clk_setup(struct device_node *node)
{ {
struct clk_gpio_gate_delayed_register_data *data; struct clk_gpio_gate_delayed_register_data *data;
...@@ -203,6 +203,5 @@ void __init of_gpio_gate_clk_setup(struct device_node *node) ...@@ -203,6 +203,5 @@ void __init of_gpio_gate_clk_setup(struct device_node *node)
of_clk_add_provider(node, of_clk_gpio_gate_delayed_register_get, data); of_clk_add_provider(node, of_clk_gpio_gate_delayed_register_get, data);
} }
EXPORT_SYMBOL_GPL(of_gpio_gate_clk_setup);
CLK_OF_DECLARE(gpio_gate_clk, "gpio-gate-clock", of_gpio_gate_clk_setup); CLK_OF_DECLARE(gpio_gate_clk, "gpio-gate-clock", of_gpio_gate_clk_setup);
#endif #endif
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