aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/platforms/83xx/suspend.c1
-rw-r--r--include/linux/fsl_devices.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/83xx/suspend.c b/arch/powerpc/platforms/83xx/suspend.c
index 08e65fc8b98c..d306f07b9aa1 100644
--- a/arch/powerpc/platforms/83xx/suspend.c
+++ b/arch/powerpc/platforms/83xx/suspend.c
@@ -96,6 +96,7 @@ int fsl_deep_sleep(void)
96{ 96{
97 return deep_sleeping; 97 return deep_sleeping;
98} 98}
99EXPORT_SYMBOL(fsl_deep_sleep);
99 100
100static int mpc83xx_change_state(void) 101static int mpc83xx_change_state(void)
101{ 102{
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h
index 39fd94681e74..47188d512b8f 100644
--- a/include/linux/fsl_devices.h
+++ b/include/linux/fsl_devices.h
@@ -90,6 +90,10 @@ struct mpc8xx_pcmcia_ops {
90 * lead to a deep sleep (i.e. power removed from the core, 90 * lead to a deep sleep (i.e. power removed from the core,
91 * instead of just the clock). 91 * instead of just the clock).
92 */ 92 */
93#if defined(CONFIG_PPC_83xx) && defined(CONFIG_SUSPEND)
93int fsl_deep_sleep(void); 94int fsl_deep_sleep(void);
95#else
96static inline int fsl_deep_sleep(void) { return 0; }
97#endif
94 98
95#endif /* _FSL_DEVICE_H_ */ 99#endif /* _FSL_DEVICE_H_ */