Jiasheng Jiang bdfdc4d832 ASoC: wm8350: Handle error for wm8350_register_irq
[ Upstream commit db0350da8084ad549bca16cc0486c11cc70a1f9b ]

As the potential failure of the wm8350_register_irq(),
it should be better to check it and return error if fails.
Also, use 'free_' in order to avoid the same code.

Fixes: a6ba2b2dabb5 ("ASoC: Implement WM8350 headphone jack detection")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220304023821.391936-1-jiasheng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-20 09:06:33 +02: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
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