Javier Martinez Canillas 1b52e50f2a mfd: max77843: Fix max77843_chg_init() return on error
If i2c_new_dummy() fails in max77843_chg_init(), an PTR_ERR(NULL) is
returned which is 0. So the function was wrongly returning a success
value instead of an error code.

Cc: stable@vger.kernel.org # 4.1
Fixes: c7f585fe46d8 ("mfd: max77843: Add max77843 MFD driver core driver")
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2015-10-01 16:31:42 +01:00
..
2015-09-04 11:46:02 -07:00
2015-08-11 15:09:01 +01:00
2015-08-11 15:09:01 +01:00
2015-08-11 15:08:45 +01:00
2015-09-04 11:35:03 -07:00
2015-03-26 14:20:18 +00:00
2015-03-03 16:41:21 +00:00
2015-09-04 11:35:03 -07:00
2015-09-04 11:35:03 -07:00
2015-08-11 15:09:01 +01:00
2014-12-14 16:10:09 -08:00
2015-08-11 15:09:01 +01:00
2015-08-11 15:09:01 +01:00
2015-09-04 11:46:02 -07:00
2013-07-31 13:01:29 +01:00
2015-08-11 15:09:01 +01:00
2015-09-04 11:46:02 -07:00
2015-09-04 11:46:02 -07:00
2015-08-11 15:09:01 +01:00
2015-09-04 11:46:02 -07:00
2015-09-04 11:46:02 -07:00