diff mbox series

[6/7] drivers: clk: unexport clk_gpio_gate_ops field

Message ID 20191128144450.24094-6-info@metux.net (mailing list archive)
State Not Applicable, archived
Headers show
Series [1/7] drivers: clk: unexport clk_register_gpio_gate() | expand

Commit Message

Enrico Weigelt, metux IT consult Nov. 28, 2019, 2:44 p.m. UTC
The clk_gpio_gate_ops field doesn't seem to have any
users outside clk-gpio.c, thus unexport and make it static.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
---
 drivers/clk/clk-gpio.c       | 3 +--
 include/linux/clk-provider.h | 2 --
 2 files changed, 1 insertion(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c
index 005e311c1822..a7e75a038728 100644
--- a/drivers/clk/clk-gpio.c
+++ b/drivers/clk/clk-gpio.c
@@ -51,12 +51,11 @@  static int clk_gpio_gate_is_enabled(struct clk_hw *hw)
 	return gpiod_get_value(clk->gpiod);
 }
 
-const struct clk_ops clk_gpio_gate_ops = {
+static const struct clk_ops clk_gpio_gate_ops = {
 	.enable = clk_gpio_gate_enable,
 	.disable = clk_gpio_gate_disable,
 	.is_enabled = clk_gpio_gate_is_enabled,
 };
-EXPORT_SYMBOL_GPL(clk_gpio_gate_ops);
 
 static int clk_sleeping_gpio_gate_prepare(struct clk_hw *hw)
 {
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index b00adc1909a1..59a7f273a182 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -772,8 +772,6 @@  struct clk_gpio {
 
 #define to_clk_gpio(_hw) container_of(_hw, struct clk_gpio, hw)
 
-extern const struct clk_ops clk_gpio_gate_ops;
-
 struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name,
 		const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod,
 		unsigned long flags);