From: Dan Carpenter Date: Sun, 15 Mar 2015 10:56:04 +0000 (+0300) Subject: extcon: max77843: Fix an error code in max77843_init_muic_regmap() X-Git-Tag: omap-for-v4.2/o2_dc~63^2~32^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9b518f53996b67833b42ca7751b2085b0dc565a;p=pandora-kernel.git 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 [cw00.choi: Use -ENOMEM instead of -ENODEV and modify patch description] Signed-off-by: Chanwoo Choi --- Reading git-diff-tree failed