diff --git a/[refs] b/[refs] index 60c8ad4fc45f..22825c6f7258 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 98add8e80764f49219de354a867f4cf8ade94ba8 +refs/heads/master: 6f367993988720c86e863bb64db8a62a002d6d9d diff --git a/trunk/drivers/media/video/smiapp-pll.c b/trunk/drivers/media/video/smiapp-pll.c index a416e27a4282..a2e41a21dc65 100644 --- a/trunk/drivers/media/video/smiapp-pll.c +++ b/trunk/drivers/media/video/smiapp-pll.c @@ -124,8 +124,9 @@ int smiapp_pll_calculate(struct device *dev, struct smiapp_pll_limits *limits, limits->min_pll_ip_freq_hz)); limits->min_pre_pll_clk_div = max_t(uint16_t, limits->min_pre_pll_clk_div, - clk_div_even(pll->ext_clk_freq_hz / - limits->max_pll_ip_freq_hz)); + clk_div_even_up( + DIV_ROUND_UP(pll->ext_clk_freq_hz, + limits->max_pll_ip_freq_hz))); dev_dbg(dev, "pre-pll check: min / max pre_pll_clk_div: %d / %d\n", limits->min_pre_pll_clk_div, limits->max_pre_pll_clk_div);