From 3ba374a5d94f8c2067731155afaf79f03e6c390c Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 30 Mar 2017 07:44:03 -0700 Subject: gpu: nvgpu: gk20a: Use new error macro 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: Ia51f36d94c5ce57a5a0ab83b3c83a6bce09e2d5c Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1331694 Reviewed-by: svccoveritychecker Reviewed-by: Alex Waterman GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gk20a/gk20a_scale.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_scale.c') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c index b411cb5c..06c73b90 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c @@ -31,6 +31,8 @@ #include "clk_gk20a.h" #include "gk20a_scale.h" +#include + /* * gk20a_scale_qos_notify() * @@ -59,8 +61,8 @@ int gk20a_scale_qos_notify(struct notifier_block *nb, pm_qos_read_max_bound(PM_QOS_GPU_FREQ_BOUNDS) * 1000; if (profile->qos_min_freq > profile->qos_max_freq) { - gk20a_err(g->dev, - "QoS: setting invalid limit, min_freq=%lu max_freq=%lu\n", + nvgpu_err(g, + "QoS: setting invalid limit, min_freq=%lu max_freq=%lu", profile->qos_min_freq, profile->qos_max_freq); profile->qos_min_freq = profile->qos_max_freq; } -- cgit v1.2.2