]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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, 14 Apr 2014 08:22:51 +0000 (10:22 +0200)
commitd4094cd7577cf06a1e0920eca29031b2c33fcda4
treeefc977190b0a06a17291b9f4a69bcf2b8f36ff88
parent820eade1b7f3b7d76582184a0dfd32525db82264
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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-omap.c