From: Tony Lindgren Date: Mon, 5 Mar 2012 23:32:38 +0000 (-0800) Subject: gpio/omap: Fix section warning for omap_mpuio_alloc_gc() X-Git-Tag: v3.4-rc1~65^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8805f410e4fb88a56552c1af42d61b38837a38fd;p=pandora-kernel.git 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 Acked-by: Kevin Hilman Signed-off-by: Grant Likely --- Reading git-diff-tree failed