lkml.org 
[lkml]   [2019]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 7/7] drivers: clk: unexport clk_hw_register_gpio_mux()
Date
The function clk_hw_register_gpio_mux() 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 --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c
index a7e75a038728..70381bf75d02 100644
--- a/drivers/clk/clk-gpio.c
+++ b/drivers/clk/clk-gpio.c
@@ -204,7 +204,7 @@ static struct clk *clk_register_gpio_gate(struct device *dev, const char *name,
* @gpiod: gpio descriptor to gate this clock
* @flags: clock flags
*/
-struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name,
+static 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)
{
@@ -216,7 +216,6 @@ struct clk_hw *clk_hw_register_gpio_mux(struct device *dev, const char *name,
return clk_register_gpio(dev, name, parent_names, num_parents,
gpiod, flags, &clk_gpio_mux_ops);
}
-EXPORT_SYMBOL_GPL(clk_hw_register_gpio_mux);

static struct clk *clk_register_gpio_mux(struct device *dev, const char *name,
const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod,
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 59a7f273a182..961c1048a9ca 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -772,9 +772,6 @@ struct clk_gpio {

#define to_clk_gpio(_hw) container_of(_hw, struct clk_gpio, hw)

-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);
void clk_hw_unregister_gpio_mux(struct clk_hw *hw);

struct clk *clk_register(struct device *dev, struct clk_hw *hw);
--
2.11.0
\
 
 \ /
  Last update: 2019-11-28 15:47    [W:0.060 / U:6.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site