diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-06 15:17:26 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-07 16:48:24 -0400 |
commit | 1add126551309a323ae422be41c9db2203bbe112 (patch) | |
tree | d9a620ca88a3c73c0f3dc0f7079ea4d3c24eb075 /drivers/gpu/nvgpu/clk/clk_common.c | |
parent | 86ecddf68734e4a938eda351f4dde11ab507de3f (diff) |
gpu: nvgpu: clk: 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: I58bb9e2fb7e5b18f74fbb92b70150cce97968fc3
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1457347
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_common.c')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_common.c b/drivers/gpu/nvgpu/clk/clk_common.c index 346ad12b..3230ded0 100644 --- a/drivers/gpu/nvgpu/clk/clk_common.c +++ b/drivers/gpu/nvgpu/clk/clk_common.c | |||
@@ -29,7 +29,7 @@ struct clk *gk20a_clk_get(struct gk20a *g) | |||
29 | 29 | ||
30 | clk = clk_get_sys(clk_dev_id, "gpu"); | 30 | clk = clk_get_sys(clk_dev_id, "gpu"); |
31 | if (IS_ERR(clk)) { | 31 | if (IS_ERR(clk)) { |
32 | gk20a_err(dev, "fail to get tegra gpu clk %s/gpu\n", | 32 | nvgpu_err(g, "fail to get tegra gpu clk %s/gpu\n", |
33 | clk_dev_id); | 33 | clk_dev_id); |
34 | return NULL; | 34 | return NULL; |
35 | } | 35 | } |