diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-06 15:42:42 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-10 15:24:22 -0400 |
commit | bc4a0bd0acd1d9b09f753d97383caa542cbb728a (patch) | |
tree | 92c577530106d95967d4d15ddc1f3fed5fb17bdb /drivers/gpu/nvgpu/lpwr/lpwr.c | |
parent | 612acdc86b520a6c7d9e68058bb7b0d22c0e7bc8 (diff) |
gpu: nvgpu: lpwr: 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: Ie8c1a62a1c42b9d10f0e89bf2959593638803c9f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1457351
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/lpwr/lpwr.c')
-rw-r--r-- | drivers/gpu/nvgpu/lpwr/lpwr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/lpwr/lpwr.c b/drivers/gpu/nvgpu/lpwr/lpwr.c index b722a900..9ff7c2a7 100644 --- a/drivers/gpu/nvgpu/lpwr/lpwr.c +++ b/drivers/gpu/nvgpu/lpwr/lpwr.c | |||
@@ -201,7 +201,7 @@ static void nvgpu_pmu_handle_param_lpwr_msg(struct gk20a *g, | |||
201 | gk20a_dbg_fn(""); | 201 | gk20a_dbg_fn(""); |
202 | 202 | ||
203 | if (status != 0) { | 203 | if (status != 0) { |
204 | gk20a_err(dev_from_gk20a(g), "LWPR PARAM cmd aborted"); | 204 | nvgpu_err(g, "LWPR PARAM cmd aborted"); |
205 | return; | 205 | return; |
206 | } | 206 | } |
207 | 207 | ||
@@ -252,7 +252,7 @@ int nvgpu_lwpr_mclk_change(struct gk20a *g, u32 pstate) | |||
252 | &ack_status, 1); | 252 | &ack_status, 1); |
253 | if (ack_status == 0) { | 253 | if (ack_status == 0) { |
254 | status = -EINVAL; | 254 | status = -EINVAL; |
255 | gk20a_err(dev_from_gk20a(g), "MCLK-CHANGE ACK failed"); | 255 | nvgpu_err(g, "MCLK-CHANGE ACK failed"); |
256 | } | 256 | } |
257 | } | 257 | } |
258 | 258 | ||
@@ -285,7 +285,7 @@ u32 nvgpu_lpwr_post_init(struct gk20a *g) | |||
285 | &ack_status, 1); | 285 | &ack_status, 1); |
286 | if (ack_status == 0) { | 286 | if (ack_status == 0) { |
287 | status = -EINVAL; | 287 | status = -EINVAL; |
288 | gk20a_err(dev_from_gk20a(g), "post-init ack failed"); | 288 | nvgpu_err(g, "post-init ack failed"); |
289 | } | 289 | } |
290 | 290 | ||
291 | return status; | 291 | return status; |