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_fll.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_fll.c')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_fll.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_fll.c b/drivers/gpu/nvgpu/clk/clk_fll.c index 7694e720..e097e593 100644 --- a/drivers/gpu/nvgpu/clk/clk_fll.c +++ b/drivers/gpu/nvgpu/clk/clk_fll.c | |||
@@ -45,7 +45,7 @@ static u32 _clk_fll_devgrp_pmudatainit_super(struct gk20a *g, | |||
45 | 45 | ||
46 | status = boardobjgrp_pmudatainit_e32(g, pboardobjgrp, pboardobjgrppmu); | 46 | status = boardobjgrp_pmudatainit_e32(g, pboardobjgrp, pboardobjgrppmu); |
47 | if (status) { | 47 | if (status) { |
48 | gk20a_err(dev_from_gk20a(g), "failed to init fll pmuobjgrp"); | 48 | nvgpu_err(g, "failed to init fll pmuobjgrp"); |
49 | return status; | 49 | return status; |
50 | } | 50 | } |
51 | pset->lut_num_entries = pfll_objs->lut_num_entries; | 51 | pset->lut_num_entries = pfll_objs->lut_num_entries; |
@@ -118,7 +118,7 @@ u32 clk_fll_sw_setup(struct gk20a *g) | |||
118 | 118 | ||
119 | status = boardobjgrpconstruct_e32(&g->clk_pmu.avfs_fllobjs.super); | 119 | status = boardobjgrpconstruct_e32(&g->clk_pmu.avfs_fllobjs.super); |
120 | if (status) { | 120 | if (status) { |
121 | gk20a_err(dev_from_gk20a(g), | 121 | nvgpu_err(g, |
122 | "error creating boardobjgrp for fll, status - 0x%x", status); | 122 | "error creating boardobjgrp for fll, status - 0x%x", status); |
123 | goto done; | 123 | goto done; |
124 | } | 124 | } |
@@ -130,7 +130,7 @@ u32 clk_fll_sw_setup(struct gk20a *g) | |||
130 | status = BOARDOBJGRP_PMU_CMD_GRP_SET_CONSTRUCT(g, pboardobjgrp, | 130 | status = BOARDOBJGRP_PMU_CMD_GRP_SET_CONSTRUCT(g, pboardobjgrp, |
131 | clk, CLK, clk_fll_device, CLK_FLL_DEVICE); | 131 | clk, CLK, clk_fll_device, CLK_FLL_DEVICE); |
132 | if (status) { | 132 | if (status) { |
133 | gk20a_err(dev_from_gk20a(g), | 133 | nvgpu_err(g, |
134 | "error constructing PMU_BOARDOBJ_CMD_GRP_SET interface - 0x%x", | 134 | "error constructing PMU_BOARDOBJ_CMD_GRP_SET interface - 0x%x", |
135 | status); | 135 | status); |
136 | goto done; | 136 | goto done; |
@@ -155,7 +155,7 @@ u32 clk_fll_sw_setup(struct gk20a *g) | |||
155 | &g->clk_pmu.avfs_fllobjs.super.super, | 155 | &g->clk_pmu.avfs_fllobjs.super.super, |
156 | clk, CLK, clk_fll_device, CLK_FLL_DEVICE); | 156 | clk, CLK, clk_fll_device, CLK_FLL_DEVICE); |
157 | if (status) { | 157 | if (status) { |
158 | gk20a_err(dev_from_gk20a(g), | 158 | nvgpu_err(g, |
159 | "error constructing PMU_BOARDOBJ_CMD_GRP_SET interface - 0x%x", | 159 | "error constructing PMU_BOARDOBJ_CMD_GRP_SET interface - 0x%x", |
160 | status); | 160 | status); |
161 | goto done; | 161 | goto done; |
@@ -179,7 +179,7 @@ u32 clk_fll_sw_setup(struct gk20a *g) | |||
179 | &pfllobjs->lut_prog_master_mask.super, | 179 | &pfllobjs->lut_prog_master_mask.super, |
180 | BOARDOBJ_GET_IDX(pfll)); | 180 | BOARDOBJ_GET_IDX(pfll)); |
181 | if (status) { | 181 | if (status) { |
182 | gk20a_err(dev_from_gk20a(g), "err setting lutprogmask"); | 182 | nvgpu_err(g, "err setting lutprogmask"); |
183 | goto done; | 183 | goto done; |
184 | } | 184 | } |
185 | pfll_master = pfll; | 185 | pfll_master = pfll; |
@@ -188,7 +188,7 @@ u32 clk_fll_sw_setup(struct gk20a *g) | |||
188 | g, pfllobjs, pfll_master, pfll); | 188 | g, pfllobjs, pfll_master, pfll); |
189 | 189 | ||
190 | if (status) { | 190 | if (status) { |
191 | gk20a_err(dev_from_gk20a(g), "err setting lutslavemask"); | 191 | nvgpu_err(g, "err setting lutslavemask"); |
192 | goto done; | 192 | goto done; |
193 | } | 193 | } |
194 | } | 194 | } |