From: Arnd Bergmann Date: Fri, 25 Jan 2013 14:14:29 +0000 (+0000) Subject: pinctrl: exynos: don't mark probing functions as __init X-Git-Tag: v3.8-rc6~13^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=312b00e510af60175b2935404a1927e6480e91e7;p=pandora-kernel.git pinctrl: exynos: don't mark probing functions as __init Functions called from a driver probe() method must not be marked __init, because they may get called after the init phase is done, when the device shows up late, or because of deferred probing. Without this patch, building exynos_defconfig results in multiple warnings like: WARNING: drivers/pinctrl/built-in.o(.text+0x51bc): Section mismatch in reference from the function exynos5440_pinctrl_probe() to the function .init.text:exynos5440_gpiolib_register() The function exynos5440_pinctrl_probe() references the function __init exynos5440_gpiolib_register(). This is often because exynos5440_pinctrl_probe lacks a __init annotation or the annotation of exynos5440_gpiolib_register is wrong. Signed-off-by: Arnd Bergmann Cc: Tomasz Figa Acked-by: Kukjin Kim Signed-off-by: Linus Walleij --- Reading git-diff-tree failed