diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 708190f25..727192979 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) struct device *dev; atomic_dec(&g->usage_count); - down_read(&g->busy_lock); dev = g->dev; if (!(dev && gk20a_can_busy(g))) - goto fail; + return; if (pm_runtime_enabled(dev)) { #ifdef CONFIG_PM @@ -128,8 +127,6 @@ void gk20a_idle(struct gk20a *g) } else { gk20a_scale_notify_idle(dev); } -fail: - up_read(&g->busy_lock); } int gk20a_pm_finalize_poweron(struct device *dev)