summaryrefslogtreecommitdiff
path: root/drivers/regulator/of_regulator.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-03-19 18:23:19 +0300
committerMark Brown <broonie@kernel.org>2019-03-20 20:14:03 +0300
commit7a67eb1d3abefe16b491b0e9801f98a98f15a3bf (patch)
treec4dbf151709ccc8c0ffa548f2d24c646e6e1f877 /drivers/regulator/of_regulator.c
parentc9e48084c88cf901ad0d99a889f2628a5622d90b (diff)
downloadlinux-7a67eb1d3abefe16b491b0e9801f98a98f15a3bf.tar.xz
regulator: of: Make regulator_of_get_init_node static
Fix sparse warning: drivers/regulator/of_regulator.c:374:20: warning: symbol 'regulator_of_get_init_node' was not declared. Should it be static? Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/of_regulator.c')
-rw-r--r--drivers/regulator/of_regulator.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regulator.c
index 7b6bf3536271..6dca0ba044d8 100644
--- a/drivers/regulator/of_regulator.c
+++ b/drivers/regulator/of_regulator.c
@@ -371,8 +371,9 @@ int of_regulator_match(struct device *dev, struct device_node *node,
}
EXPORT_SYMBOL_GPL(of_regulator_match);
-struct device_node *regulator_of_get_init_node(struct device *dev,
- const struct regulator_desc *desc)
+static struct
+device_node *regulator_of_get_init_node(struct device *dev,
+ const struct regulator_desc *desc)
{
struct device_node *search, *child;
const char *name;