diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-06 16:02:43 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-10 15:24:22 -0400 |
commit | 3a1104c3699b05201abf48ed9283bb8ccbe42732 (patch) | |
tree | a2e9445f730e9de76cbb7e68d3410a97ded588fa /drivers/gpu/nvgpu/therm/thrmdev.c | |
parent | 54eb74539342ce0fa6961e46f2ce22b68ad2fb21 (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/thrmdev.c')
-rw-r--r-- | drivers/gpu/nvgpu/therm/thrmdev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/therm/thrmdev.c b/drivers/gpu/nvgpu/therm/thrmdev.c index 199343e0..4772b628 100644 --- a/drivers/gpu/nvgpu/therm/thrmdev.c +++ b/drivers/gpu/nvgpu/therm/thrmdev.c | |||
@@ -124,7 +124,7 @@ static u32 devinit_get_therm_device_table(struct gk20a *g, | |||
124 | therm_device_size, therm_device_data.boardobj.type); | 124 | therm_device_size, therm_device_data.boardobj.type); |
125 | 125 | ||
126 | if (!boardobj) { | 126 | if (!boardobj) { |
127 | gk20a_err(dev_from_gk20a(g), | 127 | nvgpu_err(g, |
128 | "unable to create thermal device for %d type %d", | 128 | "unable to create thermal device for %d type %d", |
129 | index, therm_device_data.boardobj.type); | 129 | index, therm_device_data.boardobj.type); |
130 | status = -EINVAL; | 130 | status = -EINVAL; |
@@ -135,7 +135,7 @@ static u32 devinit_get_therm_device_table(struct gk20a *g, | |||
135 | boardobj, obj_index); | 135 | boardobj, obj_index); |
136 | 136 | ||
137 | if (status) { | 137 | if (status) { |
138 | gk20a_err(dev_from_gk20a(g), | 138 | nvgpu_err(g, |
139 | "unable to insert thermal device boardobj for %d", index); | 139 | "unable to insert thermal device boardobj for %d", index); |
140 | status = -EINVAL; | 140 | status = -EINVAL; |
141 | goto done; | 141 | goto done; |
@@ -158,7 +158,7 @@ u32 therm_device_sw_setup(struct gk20a *g) | |||
158 | /* Construct the Super Class and override the Interfaces */ | 158 | /* Construct the Super Class and override the Interfaces */ |
159 | status = boardobjgrpconstruct_e32(&g->therm_pmu.therm_deviceobjs.super); | 159 | status = boardobjgrpconstruct_e32(&g->therm_pmu.therm_deviceobjs.super); |
160 | if (status) { | 160 | if (status) { |
161 | gk20a_err(dev_from_gk20a(g), | 161 | nvgpu_err(g, |
162 | "error creating boardobjgrp for therm devices, status - 0x%x", | 162 | "error creating boardobjgrp for therm devices, status - 0x%x", |
163 | status); | 163 | status); |
164 | goto done; | 164 | goto done; |
@@ -179,7 +179,7 @@ u32 therm_device_sw_setup(struct gk20a *g) | |||
179 | status = BOARDOBJGRP_PMU_CMD_GRP_SET_CONSTRUCT(g, pboardobjgrp, | 179 | status = BOARDOBJGRP_PMU_CMD_GRP_SET_CONSTRUCT(g, pboardobjgrp, |
180 | therm, THERM, therm_device, THERM_DEVICE); | 180 | therm, THERM, therm_device, THERM_DEVICE); |
181 | if (status) { | 181 | if (status) { |
182 | gk20a_err(dev_from_gk20a(g), | 182 | nvgpu_err(g, |
183 | "error constructing PMU_BOARDOBJ_CMD_GRP_SET interface - 0x%x", | 183 | "error constructing PMU_BOARDOBJ_CMD_GRP_SET interface - 0x%x", |
184 | status); | 184 | status); |
185 | goto done; | 185 | goto done; |