gpio: tegra: tegra_gpio_config shouldn't be __init
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/gpio/gpio-tegra.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpio/gpio-tegra.c +1 -1
@@ -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;
Signature · 1 line
1.7.0.4
Grant Likely
AppliedPATCH 1/1 gpio: tegra: tegra_gpio_config shouldn't be __init
Quoted 5 lines · Stephen Warren
This function is called from non-__init context, just like tegra_gpio_enable()/disable(). Remove the
__initannotation to avoid section mismatch warnings during compile.Signed-off-by Stephen Warren <[email protected]>
Applied, thanks.
g.
Quoted 20 lines
--- drivers/gpio/gpio-tegra.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/gpio/gpio-tegra.c +1
-1@@ -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;Signature · 1 line
1.7.0.4
Signature · 2 lines
Grant Likely, B.Sc, P.Eng. Secret Lab Technologies,Ltd.