summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/therm/thrm.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-06 16:02:43 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-10 15:24:22 -0400
commit3a1104c3699b05201abf48ed9283bb8ccbe42732 (patch)
treea2e9445f730e9de76cbb7e68d3410a97ded588fa /drivers/gpu/nvgpu/therm/thrm.c
parent54eb74539342ce0fa6961e46f2ce22b68ad2fb21 (diff)
gpu: nvgpu: therm: 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: I50bab058076c6896acfc6fa82f78f52a949dd3cf Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1457354 Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/therm/thrm.c')
-rw-r--r--drivers/gpu/nvgpu/therm/thrm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/therm/thrm.c b/drivers/gpu/nvgpu/therm/thrm.c
index 731cf89e..863574b6 100644
--- a/drivers/gpu/nvgpu/therm/thrm.c
+++ b/drivers/gpu/nvgpu/therm/thrm.c
@@ -21,7 +21,7 @@ u32 therm_domain_sw_setup(struct gk20a *g)
21 21
22 status = therm_device_sw_setup(g); 22 status = therm_device_sw_setup(g);
23 if (status) { 23 if (status) {
24 gk20a_err(dev_from_gk20a(g), 24 nvgpu_err(g,
25 "error creating boardobjgrp for therm devices, status - 0x%x", 25 "error creating boardobjgrp for therm devices, status - 0x%x",
26 status); 26 status);
27 goto exit; 27 goto exit;
@@ -29,7 +29,7 @@ u32 therm_domain_sw_setup(struct gk20a *g)
29 29
30 status = therm_channel_sw_setup(g); 30 status = therm_channel_sw_setup(g);
31 if (status) { 31 if (status) {
32 gk20a_err(dev_from_gk20a(g), 32 nvgpu_err(g,
33 "error creating boardobjgrp for therm channel, status - 0x%x", 33 "error creating boardobjgrp for therm channel, status - 0x%x",
34 status); 34 status);
35 goto exit; 35 goto exit;