summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-12-18 07:10:21 +0000
committerMark Brown <broonie@kernel.org>2018-12-19 18:09:37 +0000
commit78e6fbf321a9b4cb46b17d83f25abcd318859c70 (patch)
tree6888c03ad7c3e009c606928d5017b81f2dc40832 /drivers/regulator
parent966e927bf8cc6a44f8b72582a1d6d3ffc73b12ad (diff)
downloadlinux-0-day-78e6fbf321a9b4cb46b17d83f25abcd318859c70.tar.gz
linux-0-day-78e6fbf321a9b4cb46b17d83f25abcd318859c70.tar.xz
regulator: act8945a-regulator: make symbol act8945a_pm static
Fixes the following sparse warning: drivers/regulator/act8945a-regulator.c:340:1: warning: symbol 'act8945a_pm' was not declared. Should it be static? Fixes: 7482d6ecc68e ("regulator: act8945a-regulator: Implement PM functionalities") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/act8945a-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/act8945a-regulator.c b/drivers/regulator/act8945a-regulator.c
index 1572725361222..603db77723b66 100644
--- a/drivers/regulator/act8945a-regulator.c
+++ b/drivers/regulator/act8945a-regulator.c
@@ -337,7 +337,7 @@ static int __maybe_unused act8945a_suspend(struct device *pdev)
return regmap_write(act8945a->regmap, ACT8945A_SYS_CTRL, 0x42);
}
-SIMPLE_DEV_PM_OPS(act8945a_pm, act8945a_suspend, NULL);
+static SIMPLE_DEV_PM_OPS(act8945a_pm, act8945a_suspend, NULL);
static void act8945a_pmic_shutdown(struct platform_device *pdev)
{