diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2018-12-17 13:37:51 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-12-17 15:30:57 +0300 |
commit | 22a5a4a44c43e2993e96183039aef71566e1a514 (patch) | |
tree | 2571260d9416d429272ddfaada0915c96df115ba | |
parent | 918446c96595636be81a224bf663b0f4e669aad7 (diff) | |
download | linux-22a5a4a44c43e2993e96183039aef71566e1a514.tar.xz |
regulator: act8945a-regulator: fix 'defined but not used' compiler warning
Fix 'defined but not used' compiler warning for act8945a_suspend()
function in case CONFIG_PM_SLEEP is not defined.
Fixes: b5ebba46e694 ("regulator: act8945a-regulator: add shutdown function")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reported-by: Andrei Stefanescu <andrei.stefanescu@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/act8945a-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/act8945a-regulator.c b/drivers/regulator/act8945a-regulator.c index 90572b6370c6..157272536122 100644 --- a/drivers/regulator/act8945a-regulator.c +++ b/drivers/regulator/act8945a-regulator.c @@ -326,7 +326,7 @@ static int act8945a_pmic_probe(struct platform_device *pdev) return regmap_write(act8945a->regmap, ACT8945A_SYS_UNLK_REGS, 0xef); } -static int act8945a_suspend(struct device *pdev) +static int __maybe_unused act8945a_suspend(struct device *pdev) { struct act8945a_pmic *act8945a = dev_get_drvdata(pdev); |