Skip to content

Commit bfbc79d

Browse files
jhovoldbroonie
authored andcommitted
ASoC: codecs: wcd938x: drop bogus bind error handling
Drop the bogus error handling for a soundwire device backcast during bind() that cannot fail. Fixes: 1657252 ("ASoC: codecs: wcd938x-sdw: add SoundWire driver") Cc: [email protected] # 5.14 Cc: Srinivas Kandagatla <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 1426b9b commit bfbc79d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sound/soc/codecs/wcd938x.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3448,10 +3448,6 @@ static int wcd938x_bind(struct device *dev)
34483448
wcd938x->sdw_priv[AIF1_CAP] = dev_get_drvdata(wcd938x->txdev);
34493449
wcd938x->sdw_priv[AIF1_CAP]->wcd938x = wcd938x;
34503450
wcd938x->tx_sdw_dev = dev_to_sdw_dev(wcd938x->txdev);
3451-
if (!wcd938x->tx_sdw_dev) {
3452-
dev_err(dev, "could not get txslave with matching of dev\n");
3453-
return -EINVAL;
3454-
}
34553451

34563452
/* As TX is main CSR reg interface, which should not be suspended first.
34573453
* expicilty add the dependency link */

0 commit comments

Comments
 (0)