]> git.karo-electronics.de Git - linux-beck.git/commit
gpio: max732x: Fix error handling in probe()
authorNicholas Krause <xerofoify@gmail.com>
Tue, 18 Aug 2015 13:55:44 +0000 (09:55 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 26 Aug 2015 11:34:55 +0000 (13:34 +0200)
commit78de5d5220322456f2568de23bc2e97bba3957e3
tree4c0779ff49b16a6ba80a3dcb38f1c47d35f92073
parent5d9452e7c52a106c9efdeb6c72fc73b184a6543f
gpio: max732x: Fix error handling in probe()

This fixes error handling in the function max732x_probe by checking
if the calls to the function max732x_readb fail by returning a error
code.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-max732x.c