]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: mcp16502: Use #ifdef CONFIG_PM_SLEEP around mcp16502_suspend/resume_noirq
authorAxel Lin <axel.lin@ingics.com>
Thu, 20 Dec 2018 13:14:13 +0000 (21:14 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 20 Dec 2018 14:36:04 +0000 (14:36 +0000)
commit1caf78365097a354c29e64f0c405664ff41de808
tree5a62b3cd9620c55df8a8c138f08adb192addcee9
parenta896043b66ceb60a6767b3ede3b7f0e49b049707
regulator: mcp16502: Use #ifdef CONFIG_PM_SLEEP around mcp16502_suspend/resume_noirq

mcp16502_suspend/resume_noirq is only used by SET_NOIRQ_SYSTEM_SLEEP_PM_OPS
when CONFIG_PM_SLEEP is defined.
So use #ifdef CONFIG_PM_SLEEP instead CONFIG_SUSPEND guard.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mcp16502.c