]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8350: Handle error for wm8350_register_irq
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Fri, 4 Mar 2022 02:38:21 +0000 (10:38 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Mar 2022 13:14:51 +0000 (13:14 +0000)
commit4072803c3b0d74b2ccd358cbd0a0f4689448cb9f
treee609343e979b6dd1c40d481fd85a8bf02ca120c0
parent227e1d6f49ad52453ef8b904cf92e13fd8943098
ASoC: wm8350: Handle error for wm8350_register_irq

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: 51c9b3bce253 ("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>
sound/soc/codecs/wm8350.c