From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [PATCH] gpio: tegra: tegra_gpio_config shouldn't be __init Date: Mon, 19 Mar 2012 21:49:55 +0000 Message-ID: <20120319214955.378CB3E0A04@localhost> References: <1332178560-15658-1-git-send-email-swarren@wwwdotorg.org> Return-path: In-Reply-To: <1332178560-15658-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Linus Walleij , Olof Johansson , Colin Cross Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Stephen Warren List-Id: linux-tegra@vger.kernel.org On Mon, 19 Mar 2012 11:36:00 -0600, Stephen Warren wrote: > This function is called from non-__init context, just like > tegra_gpio_enable()/disable(). Remove the __init annotation to avoid > section mismatch warnings during compile. > > Signed-off-by: Stephen Warren Applied, thanks. g. > --- > drivers/gpio/gpio-tegra.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c > index 636be99..32de670 100644 > --- a/drivers/gpio/gpio-tegra.c > +++ b/drivers/gpio/gpio-tegra.c > @@ -461,7 +461,7 @@ static int __init tegra_gpio_init(void) > } > postcore_initcall(tegra_gpio_init); > > -void __init tegra_gpio_config(struct tegra_gpio_table *table, int num) > +void tegra_gpio_config(struct tegra_gpio_table *table, int num) > { > int i; > > -- > 1.7.0.4 > -- Grant Likely, B.Sc, P.Eng. Secret Lab Technologies,Ltd.