]> err.no Git - linux-2.6/commitdiff
V4L/DVB (6818): git-dvb: drivers/media/dvb/frontends/zl10353.c: avoid 64-bit divide
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 13 Dec 2007 00:43:57 +0000 (21:43 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:03:43 +0000 (19:03 -0200)
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/frontends/zl10353.c

index 091fbcced0065918863f2cfbe01a7bc3b9b2c5d6..e874ec8df60c37b70d3c26cbbac22de1b9fa9055 100644 (file)
@@ -144,7 +144,8 @@ static void zl10353_calc_nominal_rate(struct dvb_frontend *fe,
                break;
        }
 
-       value = (bw * (u64)10 * (1 << 23) / 7 * 125 + adc_clock / 2);
+       value = (u64)10 * (1 << 23) / 7 * 125;
+       value = (bw * value) + adc_clock / 2;
        do_div(value, adc_clock);
        *nominal_rate = value;