Commit 22a5a4a4 authored by Claudiu Beznea's avatar Claudiu Beznea Committed by Mark Brown

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: b5ebba46 ("regulator: act8945a-regulator: add shutdown function")
Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Reported-by: default avatarAndrei Stefanescu <andrei.stefanescu@microchip.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 918446c9
......@@ -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);
......
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