ARM: dove: fix missing __init section of dove_mpp_gpio_mode
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Mon, 1 Jul 2013 14:56:12 +0000 (16:56 +0200)
committerJason Cooper <jason@lakedaemon.net>
Thu, 25 Jul 2013 15:22:17 +0000 (15:22 +0000)
Legacy dove_mpp_gpio_mode calls orion_gpio_set_valid which is in
__init section. Offending function is not, so this causes a section
mismatch. To fix the mismatch, also move dove_mpp_gpio_mode to
__init section.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-dove/mpp.c

index 60bd729..8a433a5 100644 (file)
@@ -47,7 +47,7 @@ static const struct dove_mpp_grp dove_mpp_grp[] = {
 
 /* Enable gpio for a range of pins. mode should be a combination of
    GPIO_OUTPUT_OK | GPIO_INPUT_OK */
-static void dove_mpp_gpio_mode(int start, int end, int gpio_mode)
+static void __init dove_mpp_gpio_mode(int start, int end, int gpio_mode)
 {
        int i;