diff options
author | Zheng Bin <zhengbin13@huawei.com> | 2022-05-12 04:37:28 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-05-12 13:41:33 +0300 |
commit | cbcab8cd737c74c20195c31d647e19f7cb49c9b8 (patch) | |
tree | 40a1be5e5a8d0a4dfda94a2aa3f4eb97ba0d8f04 /sound/soc/sof/amd | |
parent | bf4a9b2467b775717d0e9034ad916888e19713a3 (diff) | |
download | linux-cbcab8cd737c74c20195c31d647e19f7cb49c9b8.tar.xz |
ASoC: SOF: amd: add missing platform_device_unregister in acp_pci_rn_probe
acp_pci_rn_probe misses a call platform_device_unregister in error path,
this patch fixes that.
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Link: https://lore.kernel.org/r/20220512013728.4128903-1-zhengbin13@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/amd')
-rw-r--r-- | sound/soc/sof/amd/pci-rn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/sof/amd/pci-rn.c b/sound/soc/sof/amd/pci-rn.c index b8910bb7f27c..d5d9bcc2c997 100644 --- a/sound/soc/sof/amd/pci-rn.c +++ b/sound/soc/sof/amd/pci-rn.c @@ -101,6 +101,7 @@ static int acp_pci_rn_probe(struct pci_dev *pci, const struct pci_device_id *pci res = devm_kzalloc(&pci->dev, sizeof(struct resource) * ARRAY_SIZE(renoir_res), GFP_KERNEL); if (!res) { sof_pci_remove(pci); + platform_device_unregister(dmic_dev); return -ENOMEM; } |