Skip to content
Snippets Groups Projects
Commit ab2e5c8f authored by Yang Yingliang's avatar Yang Yingliang Committed by Andi Shyti
Browse files

i2c: muxes: Fix return value check in mule_i2c_mux_probe()


If dev_get_regmap() fails, it returns NULL pointer not ERR_PTR(),
replace IS_ERR() with NULL pointer check, and return -ENODEV.

Fixes: d0f8e978 ("i2c: muxes: add support for tsd,mule-i2c multiplexer")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent 59b723cd
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment