Skip to content
Commit b0b14b5b authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Sebastian Reichel
Browse files

power: supply: wm8350-power: 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 same code.

Fixes: 14431aa0 ("power_supply: Add support for WM8350 PMU")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent c8aee3f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment