Commit 1a90a659 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

ASoC: fsl_micfil: Remove unneeded ifdef's

There is no need to use ifdef's around the power managament
related functions, as they are already using the __maybe_unused
notation.
Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20200518185448.6116-1-festevam@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent f8953043
...@@ -752,7 +752,6 @@ static int fsl_micfil_probe(struct platform_device *pdev) ...@@ -752,7 +752,6 @@ static int fsl_micfil_probe(struct platform_device *pdev)
return ret; return ret;
} }
#ifdef CONFIG_PM
static int __maybe_unused fsl_micfil_runtime_suspend(struct device *dev) static int __maybe_unused fsl_micfil_runtime_suspend(struct device *dev)
{ {
struct fsl_micfil *micfil = dev_get_drvdata(dev); struct fsl_micfil *micfil = dev_get_drvdata(dev);
...@@ -779,9 +778,7 @@ static int __maybe_unused fsl_micfil_runtime_resume(struct device *dev) ...@@ -779,9 +778,7 @@ static int __maybe_unused fsl_micfil_runtime_resume(struct device *dev)
return 0; return 0;
} }
#endif /* CONFIG_PM*/
#ifdef CONFIG_PM_SLEEP
static int __maybe_unused fsl_micfil_suspend(struct device *dev) static int __maybe_unused fsl_micfil_suspend(struct device *dev)
{ {
pm_runtime_force_suspend(dev); pm_runtime_force_suspend(dev);
...@@ -795,7 +792,6 @@ static int __maybe_unused fsl_micfil_resume(struct device *dev) ...@@ -795,7 +792,6 @@ static int __maybe_unused fsl_micfil_resume(struct device *dev)
return 0; return 0;
} }
#endif /* CONFIG_PM_SLEEP */
static const struct dev_pm_ops fsl_micfil_pm_ops = { static const struct dev_pm_ops fsl_micfil_pm_ops = {
SET_RUNTIME_PM_OPS(fsl_micfil_runtime_suspend, SET_RUNTIME_PM_OPS(fsl_micfil_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