gpio: tegra: add missing error handling to probe
authorStephen Warren <swarren@nvidia.com>
Fri, 6 Dec 2013 20:36:11 +0000 (13:36 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Dec 2013 12:37:48 +0000 (13:37 +0100)
commitf57f98a6c0f4f3cb4d2ec9f9566b8e3f21843f03
tree35b36d8fcdcf6a685def44d251f67bc3631a56cb
parent7bb3ed21f9506126bd590b8bf0676bad5bfa6336
gpio: tegra: add missing error handling to probe

The call to gpiochip_add() is not currently error-checked. Add the
missing checking.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c