Skip to content

Commit 22221b1

Browse files
krzkbroonie
authored andcommitted
ASoC: codecs: wcd938x: skip printing deferred probe failuers
Probe calls wcd938x_populate_dt_data() which already prints all the error cases with dev_err_probe(), so skip the additional dev_err(). Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 086df71 commit 22221b1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sound/soc/codecs/wcd938x.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3587,10 +3587,8 @@ static int wcd938x_probe(struct platform_device *pdev)
35873587
mutex_init(&wcd938x->micb_lock);
35883588

35893589
ret = wcd938x_populate_dt_data(wcd938x, dev);
3590-
if (ret) {
3591-
dev_err(dev, "%s: Fail to obtain platform data\n", __func__);
3590+
if (ret)
35923591
return ret;
3593-
}
35943592

35953593
ret = wcd938x_add_slave_components(wcd938x, dev, &match);
35963594
if (ret)

0 commit comments

Comments
 (0)