From: Pali Rohár Date: Fri, 16 Aug 2013 12:57:07 +0000 (+0200) Subject: drm/nouveau: fix reclocking on nv40 X-Git-Tag: v3.11-rc7~10^2~2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ff42c5af6031c776d6079d67cd2615121e62fb8;p=profile%2Fcommon%2Fkernel-common.git drm/nouveau: fix reclocking on nv40 In commit 77145f1cbdf8d28b46ff8070ca749bad821e0774 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 Signed-off-by: Martin Peres Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nv40_pm.c b/drivers/gpu/drm/nouveau/nv40_pm.c index 3af5bcd..625f80d 100644 --- a/drivers/gpu/drm/nouveau/nv40_pm.c +++ b/drivers/gpu/drm/nouveau/nv40_pm.c @@ -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;