summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/boardobj/boardobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/boardobj/boardobj.c')
-rw-r--r--drivers/gpu/nvgpu/boardobj/boardobj.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/boardobj/boardobj.c b/drivers/gpu/nvgpu/boardobj/boardobj.c
index f9be6981..f38c7c4a 100644
--- a/drivers/gpu/nvgpu/boardobj/boardobj.c
+++ b/drivers/gpu/nvgpu/boardobj/boardobj.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a 4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"), 5 * copy of this software and associated documentation files (the "Software"),
@@ -32,7 +32,7 @@ u32 boardobj_construct_super(struct gk20a *g, struct boardobj **ppboardobj,
32 struct boardobj *pboardobj = NULL; 32 struct boardobj *pboardobj = NULL;
33 struct boardobj *devtmp = (struct boardobj *)args; 33 struct boardobj *devtmp = (struct boardobj *)args;
34 34
35 gk20a_dbg_info(" "); 35 nvgpu_log_info(g, " ");
36 36
37 if (devtmp == NULL) 37 if (devtmp == NULL)
38 return -EINVAL; 38 return -EINVAL;
@@ -61,7 +61,9 @@ u32 boardobj_construct_super(struct gk20a *g, struct boardobj **ppboardobj,
61 61
62u32 boardobj_destruct_super(struct boardobj *pboardobj) 62u32 boardobj_destruct_super(struct boardobj *pboardobj)
63{ 63{
64 gk20a_dbg_info(""); 64 struct gk20a *g = pboardobj->g;
65
66 nvgpu_log_info(g, " ");
65 if (pboardobj == NULL) 67 if (pboardobj == NULL)
66 return -EINVAL; 68 return -EINVAL;
67 69
@@ -75,7 +77,7 @@ u32 boardobj_destruct_super(struct boardobj *pboardobj)
75bool boardobj_implements_super(struct gk20a *g, struct boardobj *pboardobj, 77bool boardobj_implements_super(struct gk20a *g, struct boardobj *pboardobj,
76 u8 type) 78 u8 type)
77{ 79{
78 gk20a_dbg_info(""); 80 nvgpu_log_info(g, " ");
79 81
80 return (0 != (pboardobj->type_mask & BIT(type))); 82 return (0 != (pboardobj->type_mask & BIT(type)));
81} 83}
@@ -83,12 +85,12 @@ bool boardobj_implements_super(struct gk20a *g, struct boardobj *pboardobj,
83u32 boardobj_pmudatainit_super(struct gk20a *g, struct boardobj *pboardobj, 85u32 boardobj_pmudatainit_super(struct gk20a *g, struct boardobj *pboardobj,
84 struct nv_pmu_boardobj *pmudata) 86 struct nv_pmu_boardobj *pmudata)
85{ 87{
86 gk20a_dbg_info(""); 88 nvgpu_log_info(g, " ");
87 if (pboardobj == NULL) 89 if (pboardobj == NULL)
88 return -EINVAL; 90 return -EINVAL;
89 if (pmudata == NULL) 91 if (pmudata == NULL)
90 return -EINVAL; 92 return -EINVAL;
91 pmudata->type = pboardobj->type; 93 pmudata->type = pboardobj->type;
92 gk20a_dbg_info(" Done"); 94 nvgpu_log_info(g, " Done");
93 return 0; 95 return 0;
94} 96}