From mboxrd@z Thu Jan 1 00:00:00 1970 From: santosh shilimkar Subject: Re: [PATCH] gpio: omap: Allow building as a loadable module Date: Fri, 24 Apr 2015 08:40:17 -0700 Message-ID: <553A63E1.1060407@oracle.com> References: <1429833382-28532-1-git-send-email-tony@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1429833382-28532-1-git-send-email-tony@atomide.com> Sender: linux-omap-owner@vger.kernel.org To: Tony Lindgren , Linus Walleij , Alexandre Courbot Cc: linux-gpio@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Felipe Balbi , Javier Martinez Canillas , Grygorii Strashko , Kevin Hilman , Nishanth Menon , Santosh Shilimkar List-Id: linux-gpio@vger.kernel.org On 4/23/2015 4:56 PM, Tony Lindgren 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 > Cc: Javier Martinez Canillas > Cc: Grygorii Strashko > Cc: Kevin Hilman > Cc: Nishanth Menon > Cc: Santosh Shilimkar > Signed-off-by: Tony Lindgren > --- > drivers/gpio/Kconfig | 2 +- > drivers/gpio/gpio-omap.c | 24 ++++++++++++++++++++++++ > include/linux/platform_data/gpio-omap.h | 12 ++++++++++-- > 3 files changed, 35 insertions(+), 3 deletions(-) > That platform header needs serious clean-up and we now add two more inlines there. But, being able to use gpio as loadable module might be good enough reason to take this one. Acked-by: Santosh Shilimkar