diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-06 13:55:48 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-10 22:04:20 -0400 |
commit | 57d624f900896a257e2e918e93e99a14f734aea5 (patch) | |
tree | 7c2f76516baad4d1d9acec583817fe4beee63bb2 /drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c | |
parent | 3ba374a5d94f8c2067731155afaf79f03e6c390c (diff) |
gpu: nvgpu: gp10b: Use new error macros
gk20a_err() and gk20a_warn() require a struct device pointer,
which is not portable across operating systems. The new nvgpu_err()
and nvgpu_warn() macros take struct gk20a pointer. Convert code
to use the more portable macros.
JIRA NVGPU-16
Change-Id: I8dc0ddf3b6ea38af6300c27558b60786c163da6d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1457344
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c b/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c index d9e7e7bf..af06b8a6 100644 --- a/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c | |||
@@ -37,7 +37,7 @@ static int gp10b_fecs_trace_flush(struct gk20a *g) | |||
37 | err = gr_gk20a_elpg_protected_call(g, | 37 | err = gr_gk20a_elpg_protected_call(g, |
38 | gr_gk20a_submit_fecs_method_op(g, op, false)); | 38 | gr_gk20a_submit_fecs_method_op(g, op, false)); |
39 | if (err) | 39 | if (err) |
40 | gk20a_err(dev_from_gk20a(g), "write timestamp record failed"); | 40 | nvgpu_err(g, "write timestamp record failed"); |
41 | 41 | ||
42 | return err; | 42 | return err; |
43 | } | 43 | } |