Re: [PATCH 5/7] of/gpio: implement of_dev_gpiochip_{add,remove} calls

2008-10-17 Thread Anton Vorontsov
On Fri, Oct 17, 2008 at 01:25:01PM -0700, David Brownell wrote: > On Thursday 16 October 2008, Anton Vorontsov wrote: > > +   if (of_gc->chip) > > +   return of_gc->chip; > > +   return &of_gc->gc; > > presumably there's a reason not to > > of_gc->chip = &of_gc->gc; Yes

Re: [PATCH 5/7] of/gpio: implement of_dev_gpiochip_{add, remove} calls

2008-10-17 Thread David Brownell
On Thursday 16 October 2008, Anton Vorontsov wrote: > +   if (of_gc->chip) > +   return of_gc->chip; > +   return &of_gc->gc; presumably there's a reason not to of_gc->chip = &of_gc->gc; when this gets set up, so this can always be a simple return of_gc->chip

[PATCH 5/7] of/gpio: implement of_dev_gpiochip_{add,remove} calls

2008-10-16 Thread Anton Vorontsov
And let the gpiolib forward all dev_gpiochip_ calls to of_ versions, there we can glue the gpiochips with the device tree. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/include/asm/gpio.h |7 +++- drivers/of/gpio.c | 75 +++