diff options
Diffstat (limited to 'drivers/media/video/cx23885/cx23888-ir.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23888-ir.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/video/cx23885/cx23888-ir.c b/drivers/media/video/cx23885/cx23888-ir.c index bb1ce346425d..c2bc39c58f82 100644 --- a/drivers/media/video/cx23885/cx23888-ir.c +++ b/drivers/media/video/cx23885/cx23888-ir.c | |||
@@ -331,9 +331,7 @@ static u64 ns_to_pulse_clocks(u32 ns) | |||
331 | 331 | ||
332 | static u16 pulse_clocks_to_clock_divider(u64 count) | 332 | static u16 pulse_clocks_to_clock_divider(u64 count) |
333 | { | 333 | { |
334 | u32 rem; | 334 | do_div(count, (FIFO_RXTX << 2) | 0x3); |
335 | |||
336 | rem = do_div(count, (FIFO_RXTX << 2) | 0x3); | ||
337 | 335 | ||
338 | /* net result needs to be rounded down and decremented by 1 */ | 336 | /* net result needs to be rounded down and decremented by 1 */ |
339 | if (count > RXCLK_RCD + 1) | 337 | if (count > RXCLK_RCD + 1) |