Skip to content
Commit 5738d49f authored by Yang Yingliang's avatar Yang Yingliang Committed by Sebastian Reichel
Browse files

power: supply: mt6370: Fix return value check in mt6370_chg_probe()



If create_singlethread_workqueue() fails, it returns a null pointer,
replace IS_ERR() check with NULL pointer check.

Fixes: 233cb8a4 ("power: supply: mt6370: Add MediaTek MT6370 charger driver")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarChiaEn Wu <chiaen_wu@richtek.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent fe259a21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment