diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index db018cb2..19880da4 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -747,6 +747,8 @@ static int gk20a_pm_prepare_poweroff(struct device *dev) | |||
747 | 747 | ||
748 | gk20a_dbg_fn(""); | 748 | gk20a_dbg_fn(""); |
749 | 749 | ||
750 | gk20a_scale_suspend(to_platform_device(dev)); | ||
751 | |||
750 | if (!g->power_on) | 752 | if (!g->power_on) |
751 | return 0; | 753 | return 0; |
752 | 754 | ||
@@ -1205,8 +1207,6 @@ static int gk20a_pm_suspend(struct device *dev) | |||
1205 | if (atomic_read(&dev->power.usage_count) > 1) | 1207 | if (atomic_read(&dev->power.usage_count) > 1) |
1206 | return -EBUSY; | 1208 | return -EBUSY; |
1207 | 1209 | ||
1208 | gk20a_scale_suspend(to_platform_device(dev)); | ||
1209 | |||
1210 | ret = gk20a_pm_prepare_poweroff(dev); | 1210 | ret = gk20a_pm_prepare_poweroff(dev); |
1211 | if (ret) | 1211 | if (ret) |
1212 | return ret; | 1212 | return ret; |