gpio/omap: Fix section warning for omap_mpuio_alloc_gc()
authorTony Lindgren <tony@atomide.com>
Mon, 5 Mar 2012 23:32:38 +0000 (15:32 -0800)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 12 Mar 2012 17:44:46 +0000 (11:44 -0600)
commit8805f410e4fb88a56552c1af42d61b38837a38fd
tree3deb89add9b380d08abc9ae46a3045b791dd6474
parent691e06c0ff2cd0cfe79db5c52baac4fe18ca55af
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>
drivers/gpio/gpio-omap.c