mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 23:53:55 +08:00
a9a54caed9
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>
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
/*
|
|
* Copyright (c) 2005 Richard Purdie
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
*/
|
|
|
|
#include <linux/suspend.h>
|
|
|
|
struct pxa_cpu_pm_fns {
|
|
int save_count;
|
|
void (*save)(unsigned long *);
|
|
void (*restore)(unsigned long *);
|
|
int (*valid)(suspend_state_t state);
|
|
void (*enter)(suspend_state_t state);
|
|
int (*prepare)(void);
|
|
void (*finish)(void);
|
|
};
|
|
|
|
extern struct pxa_cpu_pm_fns *pxa_cpu_pm_fns;
|
|
|
|
/* sleep.S */
|
|
extern int pxa25x_finish_suspend(unsigned long);
|
|
extern int pxa27x_finish_suspend(unsigned long);
|
|
|
|
extern int pxa_pm_enter(suspend_state_t state);
|
|
extern int pxa_pm_prepare(void);
|
|
extern void pxa_pm_finish(void);
|
|
|
|
extern const char pm_enter_standby_start[], pm_enter_standby_end[];
|
|
extern int pxa3xx_finish_suspend(unsigned long);
|
|
|
|
/* NOTE: this is for PM debugging on Lubbock, it's really a big
|
|
* ugly, but let's keep the crap minimum here, instead of direct
|
|
* accessing the LUBBOCK CPLD registers in arch/arm/mach-pxa/pm.c
|
|
*/
|
|
#ifdef CONFIG_ARCH_LUBBOCK
|
|
extern void lubbock_set_hexled(uint32_t value);
|
|
#else
|
|
#define lubbock_set_hexled(x)
|
|
#endif
|