Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84bb791c authored by Vignesh Kulothungan's avatar Vignesh Kulothungan
Browse files

ASoC: codecs: remove dmic device during dev err



Remove sound wire dmic device from master device list only during
critical error and not for probe defer.

Signed-off-by: default avatarVignesh Kulothungan <vigneshk@codeaurora.org>
parent a8bc505c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -406,7 +406,7 @@ static int swr_dmic_probe(struct swr_device *pdev)
		ret = enable_wcd_codec_supply(swr_dmic, true);
		if (ret) {
			ret = -EPROBE_DEFER;
			goto dev_err;
			goto err;
		}
		++swr_dmic->is_en_supply;
	}
@@ -445,7 +445,7 @@ static int swr_dmic_probe(struct swr_device *pdev)
			"%s get devnum %d for dev addr %lx failed\n",
			__func__, swr_devnum, pdev->addr);
		ret = -EPROBE_DEFER;
		goto dev_err;
		goto err;
	}
	pdev->dev_num = swr_devnum;