Dan Carpenter 0a6204baab ASoC: cs42l56: fix up error handling in probe
[ Upstream commit 856fe64da84c95a1d415564b981ae3908eea2a76 ]

There are two issues with this code.  The first error path forgot to set
the error code and instead returns success.  The second error path
doesn't clean up.

Fixes: 272b5edd3b8f ("ASoC: Add support for CS42L56 CODEC")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X9NE/9nK9/TuxuL+@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-03 17:44:35 +01:00
..
2015-11-06 11:04:07 -08:00
2015-10-05 17:42:49 +01:00
2014-02-19 13:36:15 +09:00
2014-04-07 10:48:50 +01:00
2015-07-07 13:35:13 +01:00
2014-08-16 17:17:13 -05:00
2015-08-28 17:17:29 +01:00
2016-08-08 11:55:20 +01:00
2016-05-30 16:15:55 +01:00
2016-04-28 18:16:04 +01:00
2015-03-11 19:16:07 +00:00
2016-01-27 20:23:20 +00:00
2015-11-16 13:17:01 +00:00
2017-10-08 10:26:12 +02:00
2015-12-19 12:02:18 +00:00
2017-10-08 10:26:12 +02:00
2017-10-08 10:26:12 +02:00
2016-09-24 19:51:57 +01:00
2016-10-13 15:01:32 +02:00
2016-09-14 16:22:14 +01:00
2014-07-02 20:49:25 +01:00
2016-06-26 12:28:13 +01:00
2018-01-02 20:35:08 +01:00
2015-07-13 11:51:35 +01:00
2018-10-18 09:13:19 +02:00
2015-04-08 19:25:40 +01:00
2020-01-12 11:24:23 +01:00
2013-08-13 11:31:56 +01:00