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 r

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 "gcl"

[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 --- drivers/gpio/gp

[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 b/dri