diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-06 15:56:41 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-10 15:24:22 -0400 |
commit | 54eb74539342ce0fa6961e46f2ce22b68ad2fb21 (patch) | |
tree | 0de41f6b86a1b44f91db1361fcb68acec4056d99 /drivers/gpu/nvgpu/pmgr/pwrdev.c | |
parent | bc4a0bd0acd1d9b09f753d97383caa542cbb728a (diff) |
gpu: nvgpu: pmgr: 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: I8d85e4d3da1fe8f99649ef4395a5b0dc52b0caf2
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1457353
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pmgr/pwrdev.c')
-rw-r--r-- | drivers/gpu/nvgpu/pmgr/pwrdev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/pmgr/pwrdev.c b/drivers/gpu/nvgpu/pmgr/pwrdev.c index 0f87ad26..e32dfc40 100644 --- a/drivers/gpu/nvgpu/pmgr/pwrdev.c +++ b/drivers/gpu/nvgpu/pmgr/pwrdev.c | |||
@@ -54,7 +54,7 @@ static u32 _pwr_domains_pmudatainit_ina3221(struct gk20a *g, | |||
54 | 54 | ||
55 | status = boardobj_pmudatainit_super(g, board_obj_ptr, ppmudata); | 55 | status = boardobj_pmudatainit_super(g, board_obj_ptr, ppmudata); |
56 | if (status) { | 56 | if (status) { |
57 | gk20a_err(dev_from_gk20a(g), | 57 | nvgpu_err(g, |
58 | "error updating pmu boardobjgrp for pwr domain 0x%x", | 58 | "error updating pmu boardobjgrp for pwr domain 0x%x", |
59 | status); | 59 | status); |
60 | goto done; | 60 | goto done; |
@@ -252,7 +252,7 @@ static u32 devinit_get_pwr_device_table(struct gk20a *g, | |||
252 | pwr_device_size, pwr_device_data.boardobj.type); | 252 | pwr_device_size, pwr_device_data.boardobj.type); |
253 | 253 | ||
254 | if (!boardobj) { | 254 | if (!boardobj) { |
255 | gk20a_err(dev_from_gk20a(g), | 255 | nvgpu_err(g, |
256 | "unable to create pwr device for %d type %d", index, pwr_device_data.boardobj.type); | 256 | "unable to create pwr device for %d type %d", index, pwr_device_data.boardobj.type); |
257 | status = -EINVAL; | 257 | status = -EINVAL; |
258 | goto done; | 258 | goto done; |
@@ -262,7 +262,7 @@ static u32 devinit_get_pwr_device_table(struct gk20a *g, | |||
262 | boardobj, obj_index); | 262 | boardobj, obj_index); |
263 | 263 | ||
264 | if (status) { | 264 | if (status) { |
265 | gk20a_err(dev_from_gk20a(g), | 265 | nvgpu_err(g, |
266 | "unable to insert pwr device boardobj for %d", index); | 266 | "unable to insert pwr device boardobj for %d", index); |
267 | status = -EINVAL; | 267 | status = -EINVAL; |
268 | goto done; | 268 | goto done; |
@@ -285,7 +285,7 @@ u32 pmgr_device_sw_setup(struct gk20a *g) | |||
285 | /* Construct the Super Class and override the Interfaces */ | 285 | /* Construct the Super Class and override the Interfaces */ |
286 | status = boardobjgrpconstruct_e32(&g->pmgr_pmu.pmgr_deviceobjs.super); | 286 | status = boardobjgrpconstruct_e32(&g->pmgr_pmu.pmgr_deviceobjs.super); |
287 | if (status) { | 287 | if (status) { |
288 | gk20a_err(dev_from_gk20a(g), | 288 | nvgpu_err(g, |
289 | "error creating boardobjgrp for pmgr devices, status - 0x%x", | 289 | "error creating boardobjgrp for pmgr devices, status - 0x%x", |
290 | status); | 290 | status); |
291 | goto done; | 291 | goto done; |