Skip to content

Commit

Permalink
drm/nouveau: fix reclocking on nv40
Browse files Browse the repository at this point in the history
In commit 77145f1 was introduced
error which cause that reclocking on nv40 not working anymore.
There is missing assigment of return value from pll_calc to ret.

Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Martin Peres <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
  • Loading branch information
pali authored and Ben Skeggs committed Aug 21, 2013
1 parent 18902bb commit 0ff42c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nv40_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ nv40_calc_pll(struct drm_device *dev, u32 reg, struct nvbios_pll *pll,
if (clk < pll->vco1.max_freq)
pll->vco2.max_freq = 0;

pclk->pll_calc(pclk, pll, clk, &coef);
ret = pclk->pll_calc(pclk, pll, clk, &coef);
if (ret == 0)
return -ERANGE;

Expand Down

0 comments on commit 0ff42c5

Please sign in to comment.