diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-12-12 19:43:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:43 -0500 |
commit | 18ff605a18b29ab1b52d31f96e2ecbaf7a042a3e (patch) | |
tree | 83b88422532cb7c9ac254db856902bbc46b9838f /drivers/media/dvb/frontends/zl10353.c | |
parent | 6594ad829a98d5a9fe720d8d182a4e50fc81953a (diff) |
V4L/DVB (6818): git-dvb: drivers/media/dvb/frontends/zl10353.c: avoid 64-bit divide
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>
Diffstat (limited to 'drivers/media/dvb/frontends/zl10353.c')
-rw-r--r-- | drivers/media/dvb/frontends/zl10353.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/zl10353.c b/drivers/media/dvb/frontends/zl10353.c index 091fbcced006..e874ec8df60c 100644 --- a/drivers/media/dvb/frontends/zl10353.c +++ b/drivers/media/dvb/frontends/zl10353.c | |||
@@ -144,7 +144,8 @@ static void zl10353_calc_nominal_rate(struct dvb_frontend *fe, | |||
144 | break; | 144 | break; |
145 | } | 145 | } |
146 | 146 | ||
147 | value = (bw * (u64)10 * (1 << 23) / 7 * 125 + adc_clock / 2); | 147 | value = (u64)10 * (1 << 23) / 7 * 125; |
148 | value = (bw * value) + adc_clock / 2; | ||
148 | do_div(value, adc_clock); | 149 | do_div(value, adc_clock); |
149 | *nominal_rate = value; | 150 | *nominal_rate = value; |
150 | 151 | ||