power: supply: wm8350-power: Handle error for wm8350_register_irq
stable inclusion from stable-v5.10.110 commit 9d3dab40af719a1b192a80b19412a352b78975b0 bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9d3dab40af719a1b192a80b19412a352b78975b0 -------------------------------- [ Upstream commit b0b14b5b ] 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 same code. Fixes: 14431aa0 ("power_supply: Add support for WM8350 PMU") Signed-off-by:Jiasheng Jiang <jiasheng@iscas.ac.cn> Acked-by:
Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by:
Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Yu Liao <liaoyu15@huawei.com> Reviewed-by:
Wei Li <liwei391@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment