diff options
author | Scott Williams <scwilliams@nvidia.com> | 2012-01-05 12:12:32 -0800 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-01-10 08:14:32 -0800 |
commit | af30d3a3d056b8433eb4097070b4fbbc951f74ce (patch) | |
tree | ed5e57bf5e87f8bfeb7bcaa3710346e3f0acc208 | |
parent | 746356506c506fa624346e61c939e6eb34d02270 (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>
-rw-r--r-- | arch/arm/mach-tegra/include/mach/io_dpd.h | 15 |
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 */ |