[PATCH] gpio: omap: Allow building as a loadable module

Linus Walleij linus.walleij at linaro.org
Wed May 6 06:23:48 PDT 2015


On Fri, Apr 24, 2015 at 1:56 AM, Tony Lindgren <tony at atomide.com> wrote:

> We currently get all kinds of errors building the omap gpio driver
> as a module starting with:
>
> undefined reference to `omap2_gpio_resume_after_idle'
> undefined reference to `omap2_gpio_prepare_for_idle'
> ...
>
> Let's fix the issue by adding inline functions to the header.
> Note that we can now also remove the two unused functions for
> omap_set_gpio_debounce and omap_set_gpio_debounce_time.
>
> Then doing rmmod on the module produces further warnings
> because of missing exit related functions. Let's add those.
>
> And finally, we can make the Kconfig entry just a tristate
> option that's selected for omaps.
>
> Cc: Felipe Balbi <balbi at ti.com>
> Cc: Javier Martinez Canillas <javier at dowhile0.org>
> Cc: Grygorii Strashko <grygorii.strashko at linaro.org>
> Cc: Kevin Hilman <khilman at deeprootsystems.com>
> Cc: Nishanth Menon <nm at ti.com>
> Cc: Santosh Shilimkar <ssantosh at kernel.org>
> Signed-off-by: Tony Lindgren <tony at atomide.com>

Patch applied for v4.2.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list