ASoC: tegra_alc5632: check return value
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 1 Dec 2015 10:39:51 +0000 (16:09 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 1 Dec 2015 16:46:46 +0000 (16:46 +0000)
commit319c32597fc22a58b946a6146f2be1fd208582e0
tree94ed8c65d56ee6261149df24e29fdb5bdb566bfc
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
ASoC: tegra_alc5632: check return value

We have been returning success even if snd_soc_card_jack_new() fails.
Lets check the return value and return error if it fails.

Fixes: 12cc6d1dca4d ("ASoC: tegra_alc5632: Register jacks at the card level")
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra_alc5632.c