summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-11-29 09:10:38 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-30 06:58:47 -0500
commit7cecf8cf9e8834c568fde0bfd58d488c6b097d5c (patch)
tree14f7e2b0dbd7b4c29b54ada842859eab62b51bd8 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c
parent31261ba8846c5e255a60df446a69fe3d07785440 (diff)
gpu: nvgpu: remove linux specific include from gr_*.c files
Remove linux specific #include "common/linux/os_linux.h" from common source files gr_gk20a.c/gr_gm20b.c/gr_gp10b.c Remove use of ZERO_OR_NULL_PTR() and simply check if pointer is NULL or not Jira NVGPU-405 Change-Id: I663fe298cc720f0b0e22beaa05697b18b375a204 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1607233 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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 }