diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-08-19 15:37:56 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-08-19 13:19:56 +0100 |
commit | 6a4ce20fd776d2fd19ffaf85cf34a53761e2c888 (patch) | |
tree | 16f40f7e18fc888199744adb1ca66fc38622024c /sound/soc/amd/acp | |
parent | fb5319af6ad8616b772761ed926ca57e10f30ea4 (diff) | |
download | linux-stable-6a4ce20fd776d2fd19ffaf85cf34a53761e2c888.tar.gz linux-stable-6a4ce20fd776d2fd19ffaf85cf34a53761e2c888.tar.bz2 linux-stable-6a4ce20fd776d2fd19ffaf85cf34a53761e2c888.zip |
ASoC: amd: acp: add missing platform_device_unregister() in acp_pci_probe()
Add missing platform_device_unregister() in error path in acp_pci_probe().
Fixes: c49f5e74a11e ("ASoC: amd: acp: Add error handling cases")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220819073758.1273160-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/acp')
-rw-r--r-- | sound/soc/amd/acp/acp-pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/amd/acp/acp-pci.c b/sound/soc/amd/acp/acp-pci.c index 2c8e960cc9a6..5bb23ebe1216 100644 --- a/sound/soc/amd/acp/acp-pci.c +++ b/sound/soc/amd/acp/acp-pci.c @@ -104,6 +104,7 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id addr = pci_resource_start(pci, 0); chip->base = devm_ioremap(&pci->dev, addr, pci_resource_len(pci, 0)); if (!chip->base) { + platform_device_unregister(dmic_dev); ret = -ENOMEM; goto release_regions; } |