regulator: act8945a-regulator: fix 'defined but not used' compiler warning
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 17 Dec 2018 10:37:51 +0000 (10:37 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 17 Dec 2018 12:30:57 +0000 (12:30 +0000)
commit22a5a4a44c43e2993e96183039aef71566e1a514
tree2571260d9416d429272ddfaada0915c96df115ba
parent918446c96595636be81a224bf663b0f4e669aad7
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>
drivers/regulator/act8945a-regulator.c