summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/clk_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/clk_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/clk_gm20b.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c
index 5b3df718..25503ea1 100644
--- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c
@@ -221,7 +221,7 @@ static int clk_config_pll(struct clk_gk20a *clk, struct pll *pll,
221 } 221 }
222 222
223found_match: 223found_match:
224 BUG_ON(best_delta == ~0); 224 BUG_ON(best_delta == ~0U);
225 225
226 if (best_fit && best_delta != 0) 226 if (best_fit && best_delta != 0)
227 gk20a_dbg_clk("no best match for target @ %dMHz on gpc_pll", 227 gk20a_dbg_clk("no best match for target @ %dMHz on gpc_pll",
@@ -363,7 +363,7 @@ static void clk_config_dvfs_ndiv(int mv, u32 n_eff, struct na_dvfs *d)
363 det_delta = det_delta * d->dfs_coeff; 363 det_delta = det_delta * d->dfs_coeff;
364 364
365 n = (int)(n_eff << DFS_DET_RANGE) - det_delta; 365 n = (int)(n_eff << DFS_DET_RANGE) - det_delta;
366 BUG_ON((n < 0) || (n > (p->max_N << DFS_DET_RANGE))); 366 BUG_ON((n < 0) || (n > (int)(p->max_N << DFS_DET_RANGE)));
367 d->n_int = ((u32)n) >> DFS_DET_RANGE; 367 d->n_int = ((u32)n) >> DFS_DET_RANGE;
368 368
369 rem = ((u32)n) & ((1 << DFS_DET_RANGE) - 1); 369 rem = ((u32)n) & ((1 << DFS_DET_RANGE) - 1);