diff options
author | Tony Lindgren <tony@atomide.com> | 2012-03-05 18:32:38 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-03-12 13:44:46 -0400 |
commit | 8805f410e4fb88a56552c1af42d61b38837a38fd (patch) | |
tree | 3deb89add9b380d08abc9ae46a3045b791dd6474 /drivers/gpio | |
parent | 691e06c0ff2cd0cfe79db5c52baac4fe18ca55af (diff) |
gpio/omap: Fix section warning for omap_mpuio_alloc_gc()
Make omap_mpuio_alloc_gc() __devinit as omap_gpio_chip_init()
is __devinit. Otherwise we get:
WARNING: vmlinux.o(.devinit.text+0xa10): Section mismatch in reference
from the function omap_gpio_chip_init() to the function .init.text:omap_mpuio_alloc_gc()
The function __devinit omap_gpio_chip_init() references
a function __init omap_mpuio_alloc_gc().
If omap_mpuio_alloc_gc is only used by omap_gpio_chip_init then
annotate omap_mpuio_alloc_gc with a matching annotation.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index c48de8ffe9ef..7cbad8569268 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c | |||
@@ -973,7 +973,7 @@ static void omap_gpio_mod_init(struct gpio_bank *bank) | |||
973 | _gpio_rmw(base, bank->regs->ctrl, 0, 1); | 973 | _gpio_rmw(base, bank->regs->ctrl, 0, 1); |
974 | } | 974 | } |
975 | 975 | ||
976 | static __init void | 976 | static __devinit void |
977 | omap_mpuio_alloc_gc(struct gpio_bank *bank, unsigned int irq_start, | 977 | omap_mpuio_alloc_gc(struct gpio_bank *bank, unsigned int irq_start, |
978 | unsigned int num) | 978 | unsigned int num) |
979 | { | 979 | { |