diff options
-rw-r--r-- | drivers/video/tegra/host/nvhost_acm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/tegra/host/nvhost_acm.c b/drivers/video/tegra/host/nvhost_acm.c index 360774b72bb6..4628306c02a8 100644 --- a/drivers/video/tegra/host/nvhost_acm.c +++ b/drivers/video/tegra/host/nvhost_acm.c @@ -50,8 +50,7 @@ static void powerdown_handler(struct work_struct *work) struct nvhost_module *mod; mod = container_of(to_delayed_work(work), struct nvhost_module, powerdown); mutex_lock(&mod->lock); - BUG_ON(!mod->powered); - if (atomic_read(&mod->refcount) == 0) { + if ((atomic_read(&mod->refcount) == 0) && mod->powered){ int i; if (mod->func) mod->func(mod, NVHOST_POWER_ACTION_OFF); |