diff options
author | ramesh.chandrasekaran <ramesh.chandrasekaran@stericsson.com> | 2012-05-17 13:27:00 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-23 10:55:56 +0200 |
commit | 221be32c6e743304a4a8b6078934c8b663d44bd1 (patch) | |
tree | af7ee235c40c045d12e05313b1934e0cce298ab1 /include | |
parent | a7b0cf9ed04ecf0f1a9d3a86b2078385d6c03ac4 (diff) |
core: Fix for Basic Suspend/Resume to work
Signed-off-by: ramesh.chandrasekaran <ramesh.chandrasekaran@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/amba/bus.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index 724c69c40bb..bc1190b4782 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h @@ -90,3 +90,23 @@ void amba_release_regions(struct amba_device *); #define amba_part(d) AMBA_PART_BITS((d)->periphid) #endif + +#ifdef CONFIG_SUSPEND +extern int amba_pm_suspend(struct device *dev); +extern int amba_pm_resume(struct device *dev); +#else +#define amba_pm_suspend NULL +#define amba_pm_resume NULL +#endif + +#ifdef CONFIG_HIBERNATE_CALLBACKS +extern int amba_pm_freeze(struct device *dev); +extern int amba_pm_thaw(struct device *dev); +extern int amba_pm_poweroff(struct device *dev); +extern int amba_pm_restore(struct device *dev); +#else +#define amba_pm_freeze NULL +#define amba_pm_thaw NULL +#define amba_pm_poweroff NULL +#define amba_pm_restore NULL +#endif |