ASoC: max98090: Remove empty suspend function

Message ID 20191219125140.47689-1-broonie@kernel.org
State Accepted
Commit d24a70636b8b2b41bf983e89bbaaaf301bb80de4
Headers show
Series
  • ASoC: max98090: Remove empty suspend function
Related show

Commit Message

Mark Brown Dec. 19, 2019, 12:51 p.m.
The suspend function is empty so can be removed.

Signed-off-by: Mark Brown <broonie@kernel.org>

---
 sound/soc/codecs/max98090.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

-- 
2.20.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Comments

Tzung-Bi Shih Dec. 19, 2019, 7:09 p.m. | #1
On Thu, Dec 19, 2019 at 8:51 PM Mark Brown <broonie@kernel.org> wrote:
>

> The suspend function is empty so can be removed.

>

> Signed-off-by: Mark Brown <broonie@kernel.org>

Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Patch

diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index da23810f958e..4c7b16d557e2 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -2838,17 +2838,12 @@  static int max98090_resume(struct device *dev)
 
 	return 0;
 }
-
-static int max98090_suspend(struct device *dev)
-{
-	return 0;
-}
 #endif
 
 static const struct dev_pm_ops max98090_pm = {
 	SET_RUNTIME_PM_OPS(max98090_runtime_suspend,
 		max98090_runtime_resume, NULL)
-	SET_SYSTEM_SLEEP_PM_OPS(max98090_suspend, max98090_resume)
+	SET_SYSTEM_SLEEP_PM_OPS(NULL, max98090_resume)
 };
 
 static const struct i2c_device_id max98090_i2c_id[] = {