Commit c3158a89 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

spi: lpspi: Remove CONFIG_PM_SLEEP ifdefery

Use __maybe_unused for the suspend()/resume() hooks and get rid of
the CONFIG_PM_SLEEP ifdefery to improve the code.
Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20200817235812.19518-1-festevam@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1973d5b7
...@@ -944,8 +944,7 @@ static int fsl_lpspi_remove(struct platform_device *pdev) ...@@ -944,8 +944,7 @@ static int fsl_lpspi_remove(struct platform_device *pdev)
return 0; return 0;
} }
#ifdef CONFIG_PM_SLEEP static int __maybe_unused fsl_lpspi_suspend(struct device *dev)
static int fsl_lpspi_suspend(struct device *dev)
{ {
int ret; int ret;
...@@ -954,7 +953,7 @@ static int fsl_lpspi_suspend(struct device *dev) ...@@ -954,7 +953,7 @@ static int fsl_lpspi_suspend(struct device *dev)
return ret; return ret;
} }
static int fsl_lpspi_resume(struct device *dev) static int __maybe_unused fsl_lpspi_resume(struct device *dev)
{ {
int ret; int ret;
...@@ -968,7 +967,6 @@ static int fsl_lpspi_resume(struct device *dev) ...@@ -968,7 +967,6 @@ static int fsl_lpspi_resume(struct device *dev)
return 0; return 0;
} }
#endif /* CONFIG_PM_SLEEP */
static const struct dev_pm_ops fsl_lpspi_pm_ops = { static const struct dev_pm_ops fsl_lpspi_pm_ops = {
SET_RUNTIME_PM_OPS(fsl_lpspi_runtime_suspend, SET_RUNTIME_PM_OPS(fsl_lpspi_runtime_suspend,
......
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