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: stable@vger.kernel.org # 5.14 Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20231003155558.27079-2-johan+linaro@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 1426b9b commit bfbc79d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

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)