From 53bc9047098b087ccca02426184b1aabf154dceb Mon Sep 17 00:00:00 2001 From: Anton Vorontsov Date: Wed, 23 Sep 2009 22:52:38 +0400 Subject: [PATCH] --- yaml --- r: 175777 b: refs/heads/master c: 2e9d546eda5888962a441da1e96bbf92cb5b1cbb h: refs/heads/master i: 175775: 52d78d7d542ee49dab9a231d313073f896bf626b v: v3 --- [refs] | 2 +- trunk/arch/powerpc/platforms/83xx/suspend.c | 1 + trunk/include/linux/fsl_devices.h | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index eaa969153a85..260ead825bdb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1f8a25d4a461865c7f38e93dcecbee63b3968d21 +refs/heads/master: 2e9d546eda5888962a441da1e96bbf92cb5b1cbb diff --git a/trunk/arch/powerpc/platforms/83xx/suspend.c b/trunk/arch/powerpc/platforms/83xx/suspend.c index 08e65fc8b98c..d306f07b9aa1 100644 --- a/trunk/arch/powerpc/platforms/83xx/suspend.c +++ b/trunk/arch/powerpc/platforms/83xx/suspend.c @@ -96,6 +96,7 @@ int fsl_deep_sleep(void) { return deep_sleeping; } +EXPORT_SYMBOL(fsl_deep_sleep); static int mpc83xx_change_state(void) { diff --git a/trunk/include/linux/fsl_devices.h b/trunk/include/linux/fsl_devices.h index 39fd94681e74..47188d512b8f 100644 --- a/trunk/include/linux/fsl_devices.h +++ b/trunk/include/linux/fsl_devices.h @@ -90,6 +90,10 @@ struct mpc8xx_pcmcia_ops { * lead to a deep sleep (i.e. power removed from the core, * instead of just the clock). */ +#if defined(CONFIG_PPC_83xx) && defined(CONFIG_SUSPEND) int fsl_deep_sleep(void); +#else +static inline int fsl_deep_sleep(void) { return 0; } +#endif #endif /* _FSL_DEVICE_H_ */