Commit 2e9d546e authored by Anton Vorontsov's avatar Anton Vorontsov Committed by Kumar Gala

powerpc/fsl: Make fsl_deep_sleep() usable w/ modules and non-83xx builds

Export is needed for modular builds, and a static inline stub is needed
for non-MPC83xx builds.
Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 1f8a25d4
...@@ -96,6 +96,7 @@ int fsl_deep_sleep(void) ...@@ -96,6 +96,7 @@ int fsl_deep_sleep(void)
{ {
return deep_sleeping; return deep_sleeping;
} }
EXPORT_SYMBOL(fsl_deep_sleep);
static int mpc83xx_change_state(void) static int mpc83xx_change_state(void)
{ {
......
...@@ -90,6 +90,10 @@ struct mpc8xx_pcmcia_ops { ...@@ -90,6 +90,10 @@ struct mpc8xx_pcmcia_ops {
* lead to a deep sleep (i.e. power removed from the core, * lead to a deep sleep (i.e. power removed from the core,
* instead of just the clock). * instead of just the clock).
*/ */
#if defined(CONFIG_PPC_83xx) && defined(CONFIG_SUSPEND)
int fsl_deep_sleep(void); int fsl_deep_sleep(void);
#else
static inline int fsl_deep_sleep(void) { return 0; }
#endif
#endif /* _FSL_DEVICE_H_ */ #endif /* _FSL_DEVICE_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment