]> git.baikalelectronics.ru Git - kernel.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, 28 Apr 2014 19:35:08 +0000 (12:35 -0700)
commit63f5dd013da9e3ca4df04032d7ae1842bda641e7
tree6a55811e7bf5dfb6e374a53ebb22d759e9b64aed
parentb6180452435d5faf2febb8a0c09b97f4e5f9c767
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