mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
ASoC: codecs: wcd938x: drop bogus bind error handling
commitbfbc79de60upstream. Drop the bogus error handling for a soundwire device backcast during bind() that cannot fail. Fixes:16572522ae("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
569afdedde
commit
b2974b20e4
@@ -3454,10 +3454,6 @@ static int wcd938x_bind(struct device *dev)
|
|||||||
wcd938x->sdw_priv[AIF1_CAP] = dev_get_drvdata(wcd938x->txdev);
|
wcd938x->sdw_priv[AIF1_CAP] = dev_get_drvdata(wcd938x->txdev);
|
||||||
wcd938x->sdw_priv[AIF1_CAP]->wcd938x = wcd938x;
|
wcd938x->sdw_priv[AIF1_CAP]->wcd938x = wcd938x;
|
||||||
wcd938x->tx_sdw_dev = dev_to_sdw_dev(wcd938x->txdev);
|
wcd938x->tx_sdw_dev = dev_to_sdw_dev(wcd938x->txdev);
|
||||||
if (!wcd938x->tx_sdw_dev) {
|
|
||||||
dev_err(dev, "could not get txslave with matching of dev\n");
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* As TX is main CSR reg interface, which should not be suspended first.
|
/* As TX is main CSR reg interface, which should not be suspended first.
|
||||||
* expicilty add the dependency link */
|
* expicilty add the dependency link */
|
||||||
|
|||||||
Reference in New Issue
Block a user