Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9b518f5 authored by Dan Carpenter's avatar Dan Carpenter Committed by Chanwoo Choi
Browse files

extcon: max77843: Fix an error code in max77843_init_muic_regmap()



The i2c_new_dummy() return the NULL if error happen. So, If i2c_new_dummy()
return NULL, max77843_init_muic_regmap() return the proper error value
(-ENOMEM);

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
[cw00.choi: Use -ENOMEM instead of -ENODEV and modify patch description]
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent d927c590
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment