Skip to contentSkip to conversation

ASoC: fsl_sai: Add missing return 0 in remove()

PATCH In review Nicolin Chen 3 participants 3 messages Apr 26, 2019

Subsystems (3)
lore
Share & tools
lore

Nicolin Chen

author reviewer
#0 lore raw

PATCH 1/1 ASoC: fsl_sai: Add missing return 0 in remove()

Build warning being reported:
sound/soc/fsl/fsl_sai.c: In function 'fsl_sai_remove':
sound/soc/fsl/fsl_sai.c:921:1: warning: no return statement in function returning non-void [-Wreturn-type]

So this patch just adds a "return 0" to fix it.

Fixes 812ad463e089 ("ASoC: fsl_sai: Add support for runtime pm")
---
 sound/soc/fsl/fsl_sai.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/fsl/fsl_sai.c +2 -0
index 26c27dc..8593269 100644
@@ -918,6 +918,8 @@ static int fsl_sai_probe(struct platform_device *pdev)
 static int fsl_sai_remove(struct platform_device *pdev)
 {
 	pm_runtime_disable(&pdev->dev);
+
+	return 0;
 }
 
 static const struct of_device_id fsl_sai_ids[] = {
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Nicolin Chen

Build warning being reported:
sound/soc/fsl/fsl_sai.c: In function 'fsl_sai_remove':
sound/soc/fsl/fsl_sai.c:921:1: warning: no return statement in function returning non-void [-Wreturn-type]

So this patch just adds a "return 0" to fix it.

Fixes 812ad463e089 ("ASoC: fsl_sai: Add support for runtime pm")

Thanks Nicolin!

Quoted 24 lines
---
 sound/soc/fsl/fsl_sai.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/fsl/fsl_sai.c +2 -1
index 26c27dc..8593269 100644
@@ -918,6 +918,8 @@ static int fsl_sai_probe(struct platform_device *pdev)
 static int fsl_sai_remove(struct platform_device *pdev)
 {
        pm_runtime_disable(&pdev->dev);
+
+       return 0;
 }
 
 static const struct of_device_id fsl_sai_ids[] = {
--

2.7.4

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

maintainer
#2 lore raw

Applied "ASoC: fsl_sai: Add missing return 0 in remove()" to the asoc tree

In reply to Nicolin Chen

The patch

ASoC: fsl_sai: Add missing return 0 in remove()

has been applied to the asoc tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From b46ea8f4d23807e41be86bf214618e4fd4682b9b Mon Sep 17 00:00:00 2001

From: Nicolin Chen <[email protected]>
Date: Thu, 25 Apr 2019 20:20:50 -0700
Subject: [PATCH] ASoC: fsl_sai: Add missing return 0 in remove()

Build warning being reported:
sound/soc/fsl/fsl_sai.c: In function 'fsl_sai_remove':
sound/soc/fsl/fsl_sai.c:921:1: warning: no return statement in function returning non-void [-Wreturn-type]

So this patch just adds a "return 0" to fix it.

Fixes 812ad463e089 ("ASoC: fsl_sai: Add support for runtime pm")
---
 sound/soc/fsl/fsl_sai.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/fsl/fsl_sai.c +2 -0
index 26c27dc0781f..8593269156bd 100644
@@ -918,6 +918,8 @@ static int fsl_sai_probe(struct platform_device *pdev)
 static int fsl_sai_remove(struct platform_device *pdev)
 {
 	pm_runtime_disable(&pdev->dev);
+
+	return 0;
 }
 
 static const struct of_device_id fsl_sai_ids[] = {
Signature · 1 line
2.20.1