From: Stephen Warren Date: Mon, 19 Mar 2012 17:36:00 +0000 (-0600) Subject: gpio: tegra: tegra_gpio_config shouldn't be __init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0092f2665be3dd04f923d09a6a0deeddb4e96ec;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git gpio: tegra: tegra_gpio_config shouldn't be __init 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 Signed-off-by: Grant Likely --- diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 96662cc05ff9..ceb1fd081b85 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -428,7 +428,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;