diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-09-23 22:52:38 +0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-11-11 21:43:33 -0600 |
commit | 2e9d546eda5888962a441da1e96bbf92cb5b1cbb (patch) | |
tree | ff8e644eeb4722c0b57bb3ee0fe38feff4670944 /include | |
parent | 1f8a25d4a461865c7f38e93dcecbee63b3968d21 (diff) | |
download | linux-3.10-2e9d546eda5888962a441da1e96bbf92cb5b1cbb.tar.gz linux-3.10-2e9d546eda5888962a441da1e96bbf92cb5b1cbb.tar.bz2 linux-3.10-2e9d546eda5888962a441da1e96bbf92cb5b1cbb.zip |
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: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fsl_devices.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index 39fd94681e7..47188d512b8 100644 --- a/include/linux/fsl_devices.h +++ b/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_ */ |