ARM: pxa: move extern declarations to pm.h
authorArnd Bergmann <arnd@arndb.de>
Fri, 29 Jan 2016 14:06:30 +0000 (15:06 +0100)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Mon, 1 Feb 2016 20:44:27 +0000 (21:44 +0100)
commita9a54caed96561d01f1d923df61bd11b71df4b93
tree5c04a0bec4a25a704bcb171bd3e91fc2feffba85
parent2f2028615924b953d9b00a06119c14c3dac9247e
ARM: pxa: move extern declarations to pm.h

When CONFIG_IWMMXT is disabled, we get a warning in pxa3xx.c:

arch/arm/mach-pxa/pxa3xx.c: In function 'pxa3xx_cpu_pm_suspend':
arch/arm/mach-pxa/pxa3xx.c:109:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]

It turns out that there is an 'extern' declaration in the
middle of a function.

For consistency, this moves the declaration and two others from
the same file into pm.h.

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