regulator: of: Make regulator_of_get_init_node static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 19 Mar 2019 15:23:19 +0000 (23:23 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 20 Mar 2019 17:14:03 +0000 (17:14 +0000)
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>
drivers/regulator/of_regulator.c

index 7b6bf35362711f572e9a6f503fe350fb266c402f..6dca0ba044d8aa91ba50546af2441a1e540b7453 100644 (file)
@@ -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;