diff mbox series

[3/3] ASoC: amd: return error when acp de-init fails

Message ID 20200519143422.18255-3-Vijendar.Mukunda@amd.com (mailing list archive)
State Accepted
Commit ce5955866d971864a6cd8d012411ec96b048a696
Headers show
Series [1/3] ASoC: amd: fix kernel warning | expand

Commit Message

Vijendar Mukunda May 19, 2020, 2:34 p.m. UTC
Return error when acp de-init fails during suspend.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
---
 sound/soc/amd/renoir/rn-pci-acp3x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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)