diff mbox series

[1/7] drivers: clk: unexport clk_register_gpio_gate()

Message ID 20191128144450.24094-1-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_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(-)

Comments

Stephen Boyd Jan. 5, 2020, 8:12 p.m. UTC | #1
Quoting Enrico Weigelt, metux IT consult (2019-11-28 06:44:44)
> The function clk_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>
> ---

Is any of this patch series relevant when [1] is applied? I think I will
just apply that patch instead.

[1] https://lkml.kernel.org/r/20190830150923.259497-2-sboyd@kernel.org
diff mbox series

Patch

diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c
index 9d930edd6516..f9f81a31984a 100644
--- a/drivers/clk/clk-gpio.c
+++ b/drivers/clk/clk-gpio.c
@@ -186,7 +186,7 @@  struct clk_hw *clk_hw_register_gpio_gate(struct device *dev, const char *name,
 }
 EXPORT_SYMBOL_GPL(clk_hw_register_gpio_gate);
 
-struct clk *clk_register_gpio_gate(struct device *dev, const char *name,
+static struct clk *clk_register_gpio_gate(struct device *dev, const char *name,
 		const char *parent_name, struct gpio_desc *gpiod,
 		unsigned long flags)
 {
@@ -197,7 +197,6 @@  struct clk *clk_register_gpio_gate(struct device *dev, const char *name,
 		return ERR_CAST(hw);
 	return hw->clk;
 }
-EXPORT_SYMBOL_GPL(clk_register_gpio_gate);
 
 /**
  * clk_hw_register_gpio_mux - register a gpio clock mux with the clock framework
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 2fdfe8061363..d283f9896e86 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 *clk_register_gpio_gate(struct device *dev, const char *name,
-		const char *parent_name, struct gpio_desc *gpiod,
-		unsigned long flags);
 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);