summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-08-07 10:50:02 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2009-08-07 10:50:02 +0200
commita1eb3529b0c857e8de54c34b526aca3e07f5b34a (patch)
treea3714b1320854b458369f4c535ba5c56e7ee914d /linux/drivers/media
parent73dd04edca69ade43ea5604f1842feed69d35def (diff)
downloadmediapointer-dvb-s2-a1eb3529b0c857e8de54c34b526aca3e07f5b34a.tar.gz
mediapointer-dvb-s2-a1eb3529b0c857e8de54c34b526aca3e07f5b34a.tar.bz2
cx24113: fix mips compiler warning
From: Hans Verkuil <hverkuil@xs4all.nl> do_div requires an u64 as the first argument, not a s64. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> CC: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/frontends/cx24113.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/cx24113.c b/linux/drivers/media/dvb/frontends/cx24113.c
index e4fd533a4..075b2b57c 100644
--- a/linux/drivers/media/dvb/frontends/cx24113.c
+++ b/linux/drivers/media/dvb/frontends/cx24113.c
@@ -303,6 +303,7 @@ static void cx24113_calc_pll_nf(struct cx24113_state *state, u16 *n, s32 *f)
{
s32 N;
s64 F;
+ u64 dividend;
u8 R, r;
u8 vcodiv;
u8 factor;
@@ -346,7 +347,10 @@ static void cx24113_calc_pll_nf(struct cx24113_state *state, u16 *n, s32 *f)
F = freq_hz;
F *= (u64) (R * vcodiv * 262144);
dprintk("1 N: %d, F: %lld, R: %d\n", N, (long long)F, R);
- do_div(F, state->config->xtal_khz*1000 * factor * 2);
+ /* do_div needs an u64 as first argument */
+ dividend = F;
+ do_div(dividend, state->config->xtal_khz * 1000 * factor * 2);
+ F = dividend;
dprintk("2 N: %d, F: %lld, R: %d\n", N, (long long)F, R);
F -= (N + 32) * 262144;