Re: [PATCH 2/2] gpio: pca953x: use managed resources

2013-01-28 Thread Russell King - ARM Linux
On Mon, Jan 28, 2013 at 11:17:48AM +0100, Linus Walleij wrote: > On Fri, Jan 25, 2013 at 5:59 PM, Gregory CLEMENT > wrote: > > > From: Linus Walleij > > > > Using the devm_* managed resources the pca driver can be simplified > > and cut down on boilerplate code. > > > > [gcl: fixed a inccorect

Re: [PATCH 2/2] gpio: pca953x: use managed resources

2013-01-28 Thread Linus Walleij
On Fri, Jan 25, 2013 at 5:59 PM, Gregory CLEMENT wrote: > From: Linus Walleij > > 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"] Oh now

Re: [PATCH 2/2] gpio: pca953x: use managed resources

2013-01-28 Thread Linus Walleij
On Fri, Jan 25, 2013 at 5:59 PM, Gregory CLEMENT gregory.clem...@free-electrons.com wrote: From: Linus Walleij linus.wall...@linaro.org 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,

Re: [PATCH 2/2] gpio: pca953x: use managed resources

2013-01-28 Thread Russell King - ARM Linux
On Mon, Jan 28, 2013 at 11:17:48AM +0100, Linus Walleij wrote: On Fri, Jan 25, 2013 at 5:59 PM, Gregory CLEMENT gregory.clem...@free-electrons.com wrote: From: Linus Walleij linus.wall...@linaro.org Using the devm_* managed resources the pca driver can be simplified and cut down on

[PATCH 2/2] gpio: pca953x: use managed resources

2013-01-25 Thread Gregory CLEMENT
From: Linus Walleij 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 Signed-off-by: Gregory CLEMENT ---

[PATCH 2/2] gpio: pca953x: use managed resources

2013-01-25 Thread Linus Walleij
Using the devm_* managed resources the pca driver can be simplified and cut down on boilerplate code. Signed-off-by: Linus Walleij --- drivers/gpio/gpio-pca953x.c | 30 +++--- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/drivers/gpio/gpio-pca953x.c

[PATCH 2/2] gpio: pca953x: use managed resources

2013-01-25 Thread Linus Walleij
Using the devm_* managed resources the pca driver can be simplified and cut down on boilerplate code. Signed-off-by: Linus Walleij linus.wall...@linaro.org --- drivers/gpio/gpio-pca953x.c | 30 +++--- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git

[PATCH 2/2] gpio: pca953x: use managed resources

2013-01-25 Thread Gregory CLEMENT
From: Linus Walleij linus.wall...@linaro.org 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.wall...@linaro.org