linux/sound/soc/sunxi
Chen-Yu Tsai 85915b63ad ASoC: sun4i-codec: return error code instead of NULL when create_card fails
When sun4i_codec_create_card fails, we do not assign a proper error
code to the return value. The return value would be 0 from the previous
function call, or we would have bailed out sooner. This would confuse
the driver core into thinking the device probe succeeded, when in fact
it didn't, leaving various devres based resources lingering.

Make the create_card function pass back a meaningful error code, and
assign it to the return value.

Fixes: 45fb6b6f2a ("ASoC: sunxi: add support for the on-chip codec on
		      early Allwinner SoCs")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-10-31 09:46:16 -06:00
..
Kconfig ASoC: sunxi: depend on ARCH_SUNXI 2016-08-24 10:41:15 +01:00
Makefile ASoC: sunxi: Add Allwinner A10 Digital Audio driver 2016-06-29 22:42:53 +01:00
sun4i-codec.c ASoC: sun4i-codec: return error code instead of NULL when create_card fails 2016-10-31 09:46:16 -06:00
sun4i-i2s.c ASoC: sunxi: remove redundant dev_err call in sun4i_i2s_probe() 2016-07-04 17:28:30 +02:00
sun4i-spdif.c ASoC: sunxi: compatibility for sun6i to SPDIF 2016-08-12 12:00:34 +01:00