summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index c645aeea..6c18c895 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1164,6 +1164,7 @@ static int gk20a_pm_unrailgate(struct generic_pm_domain *domain)
1164 return _gk20a_pm_unrailgate(platform->g->dev); 1164 return _gk20a_pm_unrailgate(platform->g->dev);
1165} 1165}
1166 1166
1167#if 0
1167static int gk20a_pm_suspend(struct device *dev) 1168static int gk20a_pm_suspend(struct device *dev)
1168{ 1169{
1169 struct gk20a_platform *platform = dev_get_drvdata(dev); 1170 struct gk20a_platform *platform = dev_get_drvdata(dev);
@@ -1188,6 +1189,7 @@ static int gk20a_pm_resume(struct device *dev)
1188{ 1189{
1189 return gk20a_pm_finalize_poweron(dev); 1190 return gk20a_pm_finalize_poweron(dev);
1190} 1191}
1192#endif
1191 1193
1192static int gk20a_pm_initialise_domain(struct platform_device *pdev) 1194static int gk20a_pm_initialise_domain(struct platform_device *pdev)
1193{ 1195{
@@ -1211,8 +1213,11 @@ static int gk20a_pm_initialise_domain(struct platform_device *pdev)
1211 domain->dev_ops.stop = gk20a_pm_disable_clk; 1213 domain->dev_ops.stop = gk20a_pm_disable_clk;
1212 domain->dev_ops.save_state = gk20a_pm_prepare_poweroff; 1214 domain->dev_ops.save_state = gk20a_pm_prepare_poweroff;
1213 domain->dev_ops.restore_state = gk20a_pm_finalize_poweron; 1215 domain->dev_ops.restore_state = gk20a_pm_finalize_poweron;
1216#warning domain suspend/resume ops have been removed upstream
1217#if 0
1214 domain->dev_ops.suspend = gk20a_pm_suspend; 1218 domain->dev_ops.suspend = gk20a_pm_suspend;
1215 domain->dev_ops.resume = gk20a_pm_resume; 1219 domain->dev_ops.resume = gk20a_pm_resume;
1220#endif
1216 1221
1217 device_set_wakeup_capable(&pdev->dev, 0); 1222 device_set_wakeup_capable(&pdev->dev, 0);
1218 ret = pm_genpd_add_device(domain, &pdev->dev); 1223 ret = pm_genpd_add_device(domain, &pdev->dev);