Re: [PATCH 1/3] [POWERPC] Implement support for the GPIO LIB API

2008-01-08 Thread Stephen Rothwell
On Tue, 8 Jan 2008 21:45:18 +0300 Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > +int of_mm_gpiochip_add(struct device_node *np, > +const struct of_gpio_chip *of_gc) > +{ > + int ret = -ENOMEM; > + struct of_mm_gpio_chip *mm_gc; > + > + mm_gc = kzalloc(sizeof(*mm_gc)

[PATCH 1/3] [POWERPC] Implement support for the GPIO LIB API

2008-01-08 Thread Anton Vorontsov
This patch implements support for the GPIO LIB API. Two calls unimplemented though: irq_to_gpio and gpio_to_irq. Various OF helpers provided to ease life and reduce code duplication. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt | 58 ++