diff mbox series

[2/7] drivers: clk: unexport clk_hw_register_gpio_gate()

Message ID 20191128144450.24094-2-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 function clk_hw_register_gpio_gate() 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 | 3 ---
 2 files changed, 1 insertion(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c
index f9f81a31984a..f457b30e4900 100644
--- a/drivers/clk/clk-gpio.c
+++ b/drivers/clk/clk-gpio.c
@@ -169,7 +169,7 @@  static struct clk_hw *clk_register_gpio(struct device *dev, const char *name,
  * @gpiod: gpio descriptor to gate this clock
  * @flags: clock flags
  */
-struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name,
+static struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name,
 		const char *parent_name, struct gpio_desc *gpiod,
 		unsigned long flags)
 {
@@ -184,7 +184,6 @@  struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name,
 			(parent_name ? &parent_name : NULL),
 			(parent_name ? 1 : 0), gpiod, flags, ops);
 }
-EXPORT_SYMBOL_GPL(clk_hw_register_gpio_gate);
 
 static struct clk *clk_register_gpio_gate(struct device *dev, const char *name,
 		const char *parent_name, struct gpio_desc *gpiod,
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index d283f9896e86..b4338b26aed7 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -773,9 +773,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_gate(struct device *dev, const char *name,
-		const char *parent_name, struct gpio_desc *gpiod,
-		unsigned long flags);
 void clk_hw_unregister_gpio_gate(struct clk_hw *hw);
 
 extern const struct clk_ops clk_gpio_mux_ops;