Skip to content

Commit 086df71

Browse files
krzkbroonie
authored andcommitted
ASoC: codecs: wcd938x: handle deferred probe
WCD938x sound codec driver ignores return status of getting regulators and returns EINVAL instead of EPROBE_DEFER. If regulator provider probes after the codec, system is left without probed audio: wcd938x_codec audio-codec: wcd938x_probe: Fail to obtain platform data wcd938x_codec: probe of audio-codec failed with error -22 Fixes: 1657252 ("ASoC: codecs: wcd938x-sdw: add SoundWire driver") Cc: <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 6cc2aa9 commit 086df71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/wcd938x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3589,7 +3589,7 @@ static int wcd938x_probe(struct platform_device *pdev)
35893589
ret = wcd938x_populate_dt_data(wcd938x, dev);
35903590
if (ret) {
35913591
dev_err(dev, "%s: Fail to obtain platform data\n", __func__);
3592-
return -EINVAL;
3592+
return ret;
35933593
}
35943594

35953595
ret = wcd938x_add_slave_components(wcd938x, dev, &match);

0 commit comments

Comments
 (0)