gpio: omap: check gpiochip_add() return value
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Sun, 6 Apr 2014 14:58:14 +0000 (16:58 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Apr 2014 19:35:08 +0000 (12:35 -0700)
commit6ef7f385610a235c7041206da0f92f760b5d0e8d
tree6a55811e7bf5dfb6e374a53ebb22d759e9b64aed
parentcaebd9db7677166994570db69210cdaa3e30e1fb
gpio: omap: check gpiochip_add() return value

The gpiochip_add() function can fail if the chip cannot
be registered so the return value has to be checked and
the error propagated in case it happens.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c