summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r--drivers/gpu/nvgpu/common/linux/module.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c
index 708190f2..72719297 100644
--- a/drivers/gpu/nvgpu/common/linux/module.c
+++ b/drivers/gpu/nvgpu/common/linux/module.c
@@ -109,12 +109,11 @@ void gk20a_idle(struct gk20a *g)
109 struct device *dev; 109 struct device *dev;
110 110
111 atomic_dec(&g->usage_count); 111 atomic_dec(&g->usage_count);
112 down_read(&g->busy_lock);
113 112
114 dev = g->dev; 113 dev = g->dev;
115 114
116 if (!(dev && gk20a_can_busy(g))) 115 if (!(dev && gk20a_can_busy(g)))
117 goto fail; 116 return;
118 117
119 if (pm_runtime_enabled(dev)) { 118 if (pm_runtime_enabled(dev)) {
120#ifdef CONFIG_PM 119#ifdef CONFIG_PM
@@ -128,8 +127,6 @@ void gk20a_idle(struct gk20a *g)
128 } else { 127 } else {
129 gk20a_scale_notify_idle(dev); 128 gk20a_scale_notify_idle(dev);
130 } 129 }
131fail:
132 up_read(&g->busy_lock);
133} 130}
134 131
135int gk20a_pm_finalize_poweron(struct device *dev) 132int gk20a_pm_finalize_poweron(struct device *dev)