pinctrl/abx500: destroy mutex if returning early due to error
authorLee Jones <lee.jones@linaro.org>
Wed, 16 Jan 2013 09:17:13 +0000 (09:17 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Feb 2013 12:54:24 +0000 (13:54 +0100)
Current failure path neglects to mutex_destroy() before returning
an error due to an invalid parameter or an error received from
gpiochip_add(). This patch aims to remedy that behaviour.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

No differences found