projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f895304
)
ASoC: fsl_micfil: Remove unneeded ifdef's
author
Fabio Estevam
<festevam@gmail.com>
Mon, 18 May 2020 18:54:47 +0000
(15:54 -0300)
committer
Mark Brown
<broonie@kernel.org>
Tue, 19 May 2020 13:18:51 +0000
(14:18 +0100)
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: Fabio Estevam <festevam@gmail.com>
Link:
https://lore.kernel.org/r/20200518185448.6116-1-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_micfil.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/fsl/fsl_micfil.c
b/sound/soc/fsl/fsl_micfil.c
index 59cf95fa2b2dd1227f0e135540d529715c5b875d..8c8dd42b117533ee1f5bc45a6826aac34d4982bc 100644
(file)
--- a/
sound/soc/fsl/fsl_micfil.c
+++ b/
sound/soc/fsl/fsl_micfil.c
@@
-752,7
+752,6
@@
static int fsl_micfil_probe(struct platform_device *pdev)
return ret;
}
-#ifdef CONFIG_PM
static int __maybe_unused fsl_micfil_runtime_suspend(struct device *dev)
{
struct fsl_micfil *micfil = dev_get_drvdata(dev);
@@
-779,9
+778,7
@@
static int __maybe_unused fsl_micfil_runtime_resume(struct device *dev)
return 0;
}
-#endif /* CONFIG_PM*/
-#ifdef CONFIG_PM_SLEEP
static int __maybe_unused fsl_micfil_suspend(struct device *dev)
{
pm_runtime_force_suspend(dev);
@@
-795,7
+792,6
@@
static int __maybe_unused fsl_micfil_resume(struct device *dev)
return 0;
}
-#endif /* CONFIG_PM_SLEEP */
static const struct dev_pm_ops fsl_micfil_pm_ops = {
SET_RUNTIME_PM_OPS(fsl_micfil_runtime_suspend,