Commit 7a67eb1d authored by YueHaibing's avatar YueHaibing Committed by Mark Brown

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: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c9e48084
...@@ -371,8 +371,9 @@ int of_regulator_match(struct device *dev, struct device_node *node, ...@@ -371,8 +371,9 @@ int of_regulator_match(struct device *dev, struct device_node *node,
} }
EXPORT_SYMBOL_GPL(of_regulator_match); EXPORT_SYMBOL_GPL(of_regulator_match);
struct device_node *regulator_of_get_init_node(struct device *dev, static struct
const struct regulator_desc *desc) device_node *regulator_of_get_init_node(struct device *dev,
const struct regulator_desc *desc)
{ {
struct device_node *search, *child; struct device_node *search, *child;
const char *name; const char *name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment