summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorScott Williams <scwilliams@nvidia.com>2012-01-05 12:12:32 -0800
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-01-10 08:14:32 -0800
commitaf30d3a3d056b8433eb4097070b4fbbc951f74ce (patch)
treeed5e57bf5e87f8bfeb7bcaa3710346e3f0acc208 /arch
parent746356506c506fa624346e61c939e6eb34d02270 (diff)
arm: tegra: power: Fix build errors if PM_SLEEP is not selected
Change-Id: I2e7fa55c5d02ada3b203ec9627a4d91a5f17ca9b Signed-off-by: Scott Williams <scwilliams@nvidia.com> Reviewed-on: http://git-master/r/73539 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> (cherry picked from commit e3b0a2205133e5209a9e35c2300c03d384b1ae2a) Reviewed-on: http://git-master/r/73954 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/include/mach/io_dpd.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/io_dpd.h b/arch/arm/mach-tegra/include/mach/io_dpd.h
index 16385b463d77..8d153792b798 100644
--- a/arch/arm/mach-tegra/include/mach/io_dpd.h
+++ b/arch/arm/mach-tegra/include/mach/io_dpd.h
@@ -18,8 +18,23 @@
#define __MACH_TEGRA_IO_DPD_H
/* Tegra io dpd APIs */
+#ifdef CONFIG_PM_SLEEP
struct tegra_io_dpd *tegra_io_dpd_get(struct device *dev); /* get handle */
void tegra_io_dpd_enable(struct tegra_io_dpd *hnd); /* enable dpd */
void tegra_io_dpd_disable(struct tegra_io_dpd *hnd); /* disable dpd */
+#else
+static inline struct tegra_io_dpd *tegra_io_dpd_get(struct device *dev)
+{
+ return NULL;
+}
+static inline void tegra_io_dpd_enable(struct tegra_io_dpd *hnd)
+{
+ /* Do nothing */
+}
+static inline void tegra_io_dpd_disable(struct tegra_io_dpd *hnd)
+{
+ /* Do nothing */
+}
+#endif
#endif /* end __MACH_TEGRA_IO_DPD_H */