Skip to content

Commit

Permalink
gpio: tegra: tegra_gpio_config shouldn't be __init
Browse files Browse the repository at this point in the history
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 <swarren@wwwdotorg.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Stephen Warren authored and Grant Likely committed Mar 19, 2012
1 parent 81b279d commit b0092f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b0092f2

Please sign in to comment.