]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ASoC: amd: return error when acp de-init fails
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Tue, 19 May 2020 14:34:22 +0000 (22:34 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 19 May 2020 18:49:55 +0000 (19:49 +0100)
Return error when acp de-init fails during suspend.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20200519143422.18255-3-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/renoir/rn-pci-acp3x.c

index 502c3f794ba0647b430ce979970d2a65da5c7086..859ed67b93cfff1199fcd60a54d98cb5574da08e 100644 (file)
@@ -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)