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)
commit50f690d85e4e26ca31082e9943d36b618e7566fe
tree6960253522d61e8685601e60e7a4f987306ad3b0
parentaa6e379aef84711f432ce754bda8e88b0270061c
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