Browse Source

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: Vignesh Kulothungan <[email protected]>
Vignesh Kulothungan 5 years ago
parent
commit
84bb791c34
1 changed files with 2 additions and 2 deletions
  1. 2 2
      asoc/codecs/swr-dmic.c

+ 2 - 2
asoc/codecs/swr-dmic.c

@@ -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;