[PATCH 2/2] gpio: devm_gpio_* support should not depend on GPIOLIB
linus.walleij at linaro.org
Thu Jan 17 09:11:28 EST 2013
On Tue, Jan 15, 2013 at 9:37 AM, Shawn Guo <shawn.guo at linaro.org> wrote:
> Some architectures (e.g. blackfin) provide gpio API without requiring
> GPIOLIB support (ARCH_WANT_OPTIONAL_GPIOLIB). devm_gpio_* functions
> should also work for these architectures, since they do not really
> depend on GPIOLIB.
> Add a new option GPIO_DEVRES (enabled by default) to control the build
> of devres.c, and move devm_gpio_* function declarations out from #ifdef
> CONFIG_GPIOLIB in include/asm-generic/gpio.h, so that they can be
> available to client drivers without unnecessary dependency on GPIOLIB.
> Signed-off-by: Shawn Guo <shawn.guo at linaro.org>
Patch applied, thanks!
More information about the linux-arm-kernel