drm/radeon: adjust tested variable
[linux-2.6-block.git] / drivers / gpu / drm / radeon / radeon_uvd.c
index d34d1cf33895766c55a122adad041be62e42c70c..95f4db70dd22322c20c5a289882c3a4ca5eaab54 100644 (file)
@@ -995,7 +995,7 @@ int radeon_uvd_calc_upll_dividers(struct radeon_device *rdev,
                /* calc dclk divider with current vco freq */
                dclk_div = radeon_uvd_calc_upll_post_div(vco_freq, dclk,
                                                         pd_min, pd_even);
-               if (vclk_div > pd_max)
+               if (dclk_div > pd_max)
                        break; /* vco is too big, it has to stop */
 
                /* calc score with current vco freq */