From 6f0fcbc667ca55ed25818467069853e6d750cd7d Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 22 Jun 2017 13:15:17 -0700 Subject: gpu: nvgpu: Convert logging from dev_*() to nvgpu_*() Convert a few calls from dev_*() logging to nvgpu_*(). This reduces dependency to Linux specific struct device pointer. JIRA NVGPU-38 Change-Id: Ib51a6b1287db25b7dd4d164aec3ac75fa2801ebf Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master/r/1507929 GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/common/linux/timers.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/timers.c') diff --git a/drivers/gpu/nvgpu/common/linux/timers.c b/drivers/gpu/nvgpu/common/linux/timers.c index cfebb799..2953902e 100644 --- a/drivers/gpu/nvgpu/common/linux/timers.c +++ b/drivers/gpu/nvgpu/common/linux/timers.c @@ -97,8 +97,7 @@ static int __nvgpu_timeout_expired_msg_cpu(struct nvgpu_timeout *timeout, vsnprintf(buf, sizeof(buf), fmt, args); - dev_err(dev_from_gk20a(g), - "Timeout detected @ %pF %s\n", caller, buf); + nvgpu_err(g, "Timeout detected @ %pF %s", caller, buf); } return -ETIMEDOUT; @@ -122,8 +121,7 @@ static int __nvgpu_timeout_expired_msg_retry(struct nvgpu_timeout *timeout, vsnprintf(buf, sizeof(buf), fmt, args); - dev_err(dev_from_gk20a(g), - "No more retries @ %pF %s\n", caller, buf); + nvgpu_err(g, "No more retries @ %pF %s", caller, buf); } return -ETIMEDOUT; -- cgit v1.2.2