]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mfd: max77843: Fix max77843_chg_init() return on error
authorJavier Martinez Canillas <javier@osg.samsung.com>
Mon, 21 Sep 2015 12:26:54 +0000 (14:26 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 1 Oct 2015 15:31:42 +0000 (16:31 +0100)
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>

No differences found