Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Stephen Boyd <sboyd@codeaurora.org>

+1 -2
+1 -2
drivers/clk/clk-gpio-gate.c
··· 189 189 /** 190 190 * of_gpio_gate_clk_setup() - Setup function for gpio controlled clock 191 191 */ 192 - void __init of_gpio_gate_clk_setup(struct device_node *node) 192 + static void __init of_gpio_gate_clk_setup(struct device_node *node) 193 193 { 194 194 struct clk_gpio_gate_delayed_register_data *data; 195 195 ··· 203 203 204 204 of_clk_add_provider(node, of_clk_gpio_gate_delayed_register_get, data); 205 205 } 206 - EXPORT_SYMBOL_GPL(of_gpio_gate_clk_setup); 207 206 CLK_OF_DECLARE(gpio_gate_clk, "gpio-gate-clock", of_gpio_gate_clk_setup); 208 207 #endif