]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: pxa: cm-x2xx: avoid duplicate macro warnings
authorArnd Bergmann <arnd@arndb.de>
Tue, 8 Dec 2015 22:42:07 +0000 (23:42 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 15 Dec 2015 22:50:00 +0000 (23:50 +0100)
commitf39c42f5f9d851d4f8779d91cc9cb2ec0f9a70c6
tree8ebca877b525d9b27cdcfbfae80d1549f69f2a53
parent8864eaca909d03caa220534640a7c92e4d06c96d
ARM: pxa: cm-x2xx: avoid duplicate macro warnings

In an old commit, we worked around the duplicate definition of
GPIO24_SSP1_SFRM in cm-x2xx.c, which includes files for both
pxa25x and pxa27x. Apparently the problem has come back and we
now have four additional duplicate symbols that cause warnings:

In file included from /git/arm-soc/arch/arm/mach-pxa/pxa27x.h:7:0,
                 from /git/arm-soc/arch/arm/mach-pxa/cm-x2xx.c:27:
/git/arm-soc/arch/arm/mach-pxa/mfp-pxa27x.h:21:0: warning: "GPIO86_GPIO" redefined
 #define GPIO86_GPIO  MFP_CFG_IN(GPIO86, AF0)

This uses the same hack as before and undefines all symbols that
are defined more than once. Fortunately, cm-x2xx does not need
any of these.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/cm-x2xx.c