[SRU][F][PATCH 17/19] ASoC: amd: return error when acp de-init fails

Hui Wang hui.wang at canonical.com
Thu May 28 02:11:01 UTC 2020


From: Vijendar Mukunda <Vijendar.Mukunda at amd.com>

BugLink: https://bugs.launchpad.net/bugs/1881046

Return error when acp de-init fails during suspend.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda at amd.com>
Link: https://lore.kernel.org/r/20200519143422.18255-3-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie at kernel.org>
(cherry picked from commit ce5955866d971864a6cd8d012411ec96b048a696
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git)
Signed-off-by: Hui Wang <hui.wang at canonical.com>
---
 sound/soc/amd/renoir/rn-pci-acp3x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir/rn-pci-acp3x.c
index 502c3f794ba0..859ed67b93cf 100644
--- a/sound/soc/amd/renoir/rn-pci-acp3x.c
+++ b/sound/soc/amd/renoir/rn-pci-acp3x.c
@@ -277,7 +277,7 @@ static int snd_rn_acp_suspend(struct device *dev)
 	else
 		dev_dbg(dev, "ACP de-initialized\n");
 
-	return 0;
+	return ret;
 }
 
 static int snd_rn_acp_resume(struct device *dev)
-- 
2.17.1




More information about the kernel-team mailing list