Skip to content
Snippets Groups Projects
Commit 2d68f7cc authored by Cosmin-Gabriel Samoila's avatar Cosmin-Gabriel Samoila Committed by Jason Liu
Browse files

MLKU-24-9 sound: soc: fix unused warning


When CONFIG_PM is not defined, the runtime suspend and resume
are unused so we should use __maybe_unused attribute.

Signed-off-by: default avatarCosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
parent 08004f69
No related merge requests found
......@@ -2401,7 +2401,7 @@ static int __maybe_unused fsl_micfil_runtime_resume(struct device *dev)
#endif /* CONFIG_PM*/
#ifdef CONFIG_PM_SLEEP
static int fsl_micfil_suspend(struct device *dev)
static int __maybe_unused fsl_micfil_suspend(struct device *dev)
{
struct fsl_micfil *micfil = dev_get_drvdata(dev);
int ret;
......@@ -2421,7 +2421,7 @@ static int fsl_micfil_suspend(struct device *dev)
return 0;
}
static int fsl_micfil_resume(struct device *dev)
static int __maybe_unused fsl_micfil_resume(struct device *dev)
{
struct fsl_micfil *micfil = dev_get_drvdata(dev);
int ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment