]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl/nomadik: simplify GPIO probe
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Jan 2013 13:04:56 +0000 (14:04 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Jan 2013 20:49:20 +0000 (21:49 +0100)
commit069547c4126f9bcf57881c56c0669a43972ac446
tree6960253522d61e8685601e60e7a4f987306ad3b0
parent7d1c577f3e3d640b48acfc2f979256b26d01432f
pinctrl/nomadik: simplify GPIO probe

Instead of jumping to a label later in the probe just return
with an error code whenever probe() fails. Make sure to remove
the gpiochip on irqdomain error now that we're at it.

Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-nomadik.c