gpio: pca953x: use managed resources
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 25 Jan 2013 16:59:28 +0000 (17:59 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Jan 2013 10:17:04 +0000 (11:17 +0100)
Using the devm_* managed resources the pca driver can be simplified
and cut down on boilerplate code.

[gcl: fixed a inccorect reference to a removed label, "goto fail_out"
became "return ret"]

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pca953x.c

Simple merge