Merge tag 'trace-v6.9-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux...
[sfrench/cifs-2.6.git] / drivers / media / i2c / tc358746.c
index 106de4271d2ef94533e5797ac30bd4dd6aa1df93..d676adc4401bb5094be17bec25e54dfc7113d251 100644 (file)
@@ -843,14 +843,14 @@ static unsigned long tc358746_find_pll_settings(struct tc358746 *tc358746,
                if (fin < 4 * HZ_PER_MHZ || fin > 40 * HZ_PER_MHZ)
                        continue;
 
-               tmp = fout * p * postdiv;
+               tmp = fout * postdiv;
                do_div(tmp, fin);
                mul = tmp;
                if (mul > 511)
                        continue;
 
                tmp = mul * fin;
-               do_div(tmp, p * postdiv);
+               do_div(tmp, postdiv);
 
                delta = abs(fout - tmp);
                if (delta < min_delta) {