diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/pramin.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/pramin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/pramin.c b/drivers/gpu/nvgpu/common/pramin.c index b6166f51..9b04d5a3 100644 --- a/drivers/gpu/nvgpu/common/pramin.c +++ b/drivers/gpu/nvgpu/common/pramin.c | |||
@@ -51,7 +51,7 @@ void nvgpu_pramin_access_batched(struct gk20a *g, struct nvgpu_mem *mem, | |||
51 | * driver should be refactored to prevent this from happening, but for | 51 | * driver should be refactored to prevent this from happening, but for |
52 | * now it is ok just to ignore the writes | 52 | * now it is ok just to ignore the writes |
53 | */ | 53 | */ |
54 | if (!g->regs && nvgpu_is_enabled(g, NVGPU_DRIVER_IS_DYING)) | 54 | if (!gk20a_io_exists(g) && nvgpu_is_enabled(g, NVGPU_DRIVER_IS_DYING)) |
55 | return; | 55 | return; |
56 | 56 | ||
57 | alloc = mem->vidmem_alloc; | 57 | alloc = mem->vidmem_alloc; |