• Arnd Bergmann's avatar
    ARM: pxa: define palmte2_pxa_keys conditionally · 30bda0eb
    Arnd Bergmann authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Acked-by: default avatarMarek Vasut <marek.vasut@gmail.com>
    Cc: Carlos Eduardo Medaglia Dyonisio <cadu@nerdfeliz.com>
    Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
    Cc: Eric Miao <eric.y.miao@gmail.com>
    30bda0eb
palmte2.c 9.72 KB