[PATCH 4.1 26/46] mfd: max77843: Fix max77843_chg_init() return on error

2015-10-23 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas commit 1b52e50f2a402a266f1ba2281f0a57e87637a047 upstream. If i2c_new_dummy() fails in max77843_chg_init(), an PTR_ERR(NULL) is returned which is 0. So the function was

[PATCH 4.1 26/46] mfd: max77843: Fix max77843_chg_init() return on error

2015-10-23 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas commit 1b52e50f2a402a266f1ba2281f0a57e87637a047 upstream. If i2c_new_dummy() fails in max77843_chg_init(), an PTR_ERR(NULL) is returned which