diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-01-16 18:16:53 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-18 09:43:10 +0100 |
commit | 0e5b890c63efd35bf5d234a39e9fc6ad4444c452 (patch) | |
tree | 05103d5f3a3a8198bd56650c79828a286e1fa606 | |
parent | 001d4c27f9b97bdbc6cfc23213c4c85d8f3ca23b (diff) | |
download | barebox-0e5b890c63efd35bf5d234a39e9fc6ad4444c452.tar.gz barebox-0e5b890c63efd35bf5d234a39e9fc6ad4444c452.tar.xz |
reset: Mark local functions as static
There are no outside users of of_reset_control_get() or
gpio_reset_control_get(), so mark them as static. This allows us to
avoid "no previous prototype" warning as well.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/reset/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/reset/core.c b/drivers/reset/core.c index 59f75ca475..99b9c80655 100644 --- a/drivers/reset/core.c +++ b/drivers/reset/core.c @@ -147,8 +147,8 @@ EXPORT_SYMBOL_GPL(reset_control_deassert); * * Use of id names is optional. */ -struct reset_control *of_reset_control_get(struct device_node *node, - const char *id) +static struct reset_control *of_reset_control_get(struct device_node *node, + const char *id) { struct reset_control *rstc = ERR_PTR(-ENODEV); struct reset_controller_dev *r, *rcdev; @@ -194,9 +194,9 @@ struct reset_control *of_reset_control_get(struct device_node *node, return rstc; } -EXPORT_SYMBOL_GPL(of_reset_control_get); -struct reset_control *gpio_reset_control_get(struct device_d *dev, const char *id) +static struct reset_control * +gpio_reset_control_get(struct device_d *dev, const char *id) { struct reset_control *rc; int gpio; |