From: Arnd Bergmann Date: Sat, 15 Mar 2014 19:08:48 +0000 (+0100) Subject: ARM: s5p64x0: fix building with only one soc type X-Git-Tag: v3.15-rc1~81^2~8^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f579c0391320285ac48551efd9715a0e8366379;p=pandora-kernel.git ARM: s5p64x0: fix building with only one soc type The s5p64x0 platform supports two distinct SoCs, s5p6440 and s5p6450, and in the normal configuration, both are enabled. However if we build a kernel that only enables one of the two, the #ifdef logic in common.c breaks down, as some of the functions declared in the header are defined to NULL using the preprocessor but then defined anyway. This patch cleans up the mess and ensures that each function has either exactly one C declaration and one matching C definition, or we have a NULL defined function pointer but no C definition. Signed-off-by: Arnd Bergmann Acked-by: Kukjin Kim Cc: Tomasz Figa Cc: Ben Dooks --- Reading git-diff-tree failed