]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commitb42748c970d1865685749960cb23f08e259a9f86
tree659149c3fd8b2f7a3c4a3694e13a43f8fade265f
parent0e8f2fdacf1d44651aa7e57063c76142d1f4988b
gpio: pca953x: use managed resources

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