From: YueHaibing Date: Tue, 19 Mar 2019 15:23:19 +0000 (+0800) Subject: regulator: of: Make regulator_of_get_init_node static X-Git-Tag: v5.2-rc1~174^2^2~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a67eb1d3abefe16b491b0e9801f98a98f15a3bf;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regulator.c index 7b6bf35362711..6dca0ba044d8a 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;