summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 73b49927..bc8d3ea8 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -47,8 +47,6 @@
47#include "regops_gk20a.h" 47#include "regops_gk20a.h"
48#include "dbg_gpu_gk20a.h" 48#include "dbg_gpu_gk20a.h"
49 49
50#include "common/linux/os_linux.h"
51
52#include <nvgpu/hw/gk20a/hw_ccsr_gk20a.h> 50#include <nvgpu/hw/gk20a/hw_ccsr_gk20a.h>
53#include <nvgpu/hw/gk20a/hw_ctxsw_prog_gk20a.h> 51#include <nvgpu/hw/gk20a/hw_ctxsw_prog_gk20a.h>
54#include <nvgpu/hw/gk20a/hw_fifo_gk20a.h> 52#include <nvgpu/hw/gk20a/hw_fifo_gk20a.h>
@@ -6491,7 +6489,7 @@ int gr_gk20a_get_pm_ctx_buffer_offsets(struct gk20a *g,
6491 return -ENODEV; 6489 return -ENODEV;
6492 6490
6493 priv_registers = nvgpu_kzalloc(g, sizeof(u32) * potential_offsets); 6491 priv_registers = nvgpu_kzalloc(g, sizeof(u32) * potential_offsets);
6494 if (ZERO_OR_NULL_PTR(priv_registers)) { 6492 if (!priv_registers) {
6495 gk20a_dbg_fn("failed alloc for potential_offsets=%d", potential_offsets); 6493 gk20a_dbg_fn("failed alloc for potential_offsets=%d", potential_offsets);
6496 return -ENOMEM; 6494 return -ENOMEM;
6497 } 6495 }