From: Lee Jones Date: Thu, 31 Jan 2013 11:06:33 +0000 (+0000) Subject: pinctrl/abx500: prevent error path from corrupting returning error X-Git-Tag: v3.9-rc1~153^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa1ec996ac1a42e46ec7dca089252f124c81d7bd;p=pandora-kernel.git pinctrl/abx500: prevent error path from corrupting returning error Prior to this patch abx500_gpio_probe() would return the return-value of gpiochip_remove() during its error patch regardless of what the actual failure was. So as long as gpiochip_remove() succeeded, probe() would look like it succeeded too. This patch ensures the correct error value is returned and that mutex_destroy() is invoked if gpiochip_add_pin_range() were to fail. Signed-off-by: Lee Jones Signed-off-by: Linus Walleij --- Reading git-diff-tree failed