diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2012-06-15 14:48:47 +0300 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-06-21 08:29:47 -0700 |
commit | 713882860f85b874b350ae841e438942f6375eba (patch) | |
tree | bd0d0f094d2a0465b4785202314893debe19541a /drivers/video/tegra/host/gr3d/gr3d.c | |
parent | 93636aa81cf8282d8913aedf36dabac6fe557980 (diff) |
video: tegra: host: Exclude suspend/resume if disabled
Compile power management suspend and resume functions only when
CONFIG_PM is enabled.
Change-Id: If349984d62ed002594ba60ac25cd4dddd956aa6c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/109425
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host/gr3d/gr3d.c')
-rw-r--r-- | drivers/video/tegra/host/gr3d/gr3d.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/gr3d/gr3d.c b/drivers/video/tegra/host/gr3d/gr3d.c index e2af384fb09a..bf8309b22740 100644 --- a/drivers/video/tegra/host/gr3d/gr3d.c +++ b/drivers/video/tegra/host/gr3d/gr3d.c @@ -223,6 +223,7 @@ static int __exit gr3d_remove(struct nvhost_device *dev) return 0; } +#ifdef CONFIG_PM static int gr3d_suspend(struct nvhost_device *dev, pm_message_t state) { return nvhost_client_device_suspend(dev); @@ -233,6 +234,7 @@ static int gr3d_resume(struct nvhost_device *dev) dev_info(&dev->dev, "resuming\n"); return 0; } +#endif static struct nvhost_driver gr3d_driver = { .probe = gr3d_probe, |