From: Arnd Bergmann Date: Mon, 30 Apr 2012 16:05:28 +0000 (+0000) Subject: ARM: pxa: define palmte2_pxa_keys conditionally X-Git-Tag: v3.7-rc1~38^2~5^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30bda0ebef512af996a079977488ea52a0ff1646;p=pandora-kernel.git ARM: pxa: define palmte2_pxa_keys conditionally Gcc prints a harmless warning about palmte2_pxa_keys not being used when the gpio keyboard driver is disabled. The solution is to use the same #ifdef that is already present in the place where the symbol is used. Without this patch, building palmz72_defconfig results in: /home/arnd/linux-arm/arch/arm/mach-pxa/palmte2.c:128:31: warning: 'palmte2_pxa_keys' defined but not used [-Wunused-variable] Signed-off-by: Arnd Bergmann Acked-by: Marek Vasut Cc: Carlos Eduardo Medaglia Dyonisio Cc: Haojian Zhuang Cc: Eric Miao --- Reading git-diff-tree failed