From: Arnd Bergmann Date: Fri, 28 Sep 2012 21:36:16 +0000 (+0200) Subject: pinctrl: samsung: use __devinit section for init code X-Git-Tag: v3.7-rc2~41^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47dbec59c37ab02946a6db7ac30c3bf6ca02630c;p=pandora-kernel.git pinctrl: samsung: use __devinit section for init code The samsung pinctrl driver has a probe function that is __devinit and that calls a lot of other functions that are marked __init, which kbuild complains about. Marking everything __devinit means that the code does not discarded when CONFIG_HOTPLUG is set, which is a little more wasteful, but also more consistent Without this patch, building exynos_defconfig results in: WARNING: drivers/pinctrl/built-in.o(.devinit.text+0x124): Section mismatch in reference from the function samsung_pinctrl_probe() to the function .init.text:samsung_gpiolib_register() The function __devinit samsung_pinctrl_probe() references a function __init samsung_gpiolib_register(). If samsung_gpiolib_register is only used by samsung_pinctrl_probe then annotate samsung_gpiolib_register with a matching annotation. Signed-off-by: Arnd Bergmann Cc: Thomas Abraham Cc: Linus Walleij Cc: Stephen Warren Cc: Kukjin Kim Signed-off-by: Linus Walleij --- Reading git-diff-tree failed