From bc4a0bd0acd1d9b09f753d97383caa542cbb728a Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 6 Apr 2017 12:42:42 -0700 Subject: 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 Reviewed-on: http://git-master/r/1457351 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman --- drivers/gpu/nvgpu/lpwr/lpwr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/lpwr/lpwr.c') 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, gk20a_dbg_fn(""); if (status != 0) { - gk20a_err(dev_from_gk20a(g), "LWPR PARAM cmd aborted"); + nvgpu_err(g, "LWPR PARAM cmd aborted"); return; } @@ -252,7 +252,7 @@ int nvgpu_lwpr_mclk_change(struct gk20a *g, u32 pstate) &ack_status, 1); if (ack_status == 0) { status = -EINVAL; - gk20a_err(dev_from_gk20a(g), "MCLK-CHANGE ACK failed"); + nvgpu_err(g, "MCLK-CHANGE ACK failed"); } } @@ -285,7 +285,7 @@ u32 nvgpu_lpwr_post_init(struct gk20a *g) &ack_status, 1); if (ack_status == 0) { status = -EINVAL; - gk20a_err(dev_from_gk20a(g), "post-init ack failed"); + nvgpu_err(g, "post-init ack failed"); } return status; -- cgit v1.2.2