regulator: act8945a-regulator: make symbol act8945a_pm static
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 18 Dec 2018 07:10:21 +0000 (07:10 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 19 Dec 2018 18:09:37 +0000 (18:09 +0000)
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>
drivers/regulator/act8945a-regulator.c

index 1572725361222c99b6a6405d502b90445d468411..603db77723b66de337b112459244de5bfd7454f3 100644 (file)
@@ -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)
 {