commit | b9b518f53996b67833b42ca7751b2085b0dc565a | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sun Mar 15 13:56:04 2015 +0300 |
committer | Chanwoo Choi <cw00.choi@samsung.com> | Mon Mar 23 10:50:27 2015 +0900 |
tree | 101093ee28154ce1312c976f7b2fff8bf351696c | |
parent | d927c59076f505a056e78a9fc9744069aa052cc8 [diff] |
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: Dan Carpenter <dan.carpenter@oracle.com> [cw00.choi: Use -ENOMEM instead of -ENODEV and modify patch description] Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>