diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-23 21:29:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-26 05:47:42 -0400 |
commit | 46cebe017afd03614b17c70ed5ed2734ec3796f7 (patch) | |
tree | 29967d2aaf086d8fc4be9112ac9faa3450cd782f /drivers/media | |
parent | 5b5560842a7ee002d208a20866f88fafd63198eb (diff) |
[media] qm1d1c0042: fix compilation on 32 bits
drivers/built-in.o: In function `qm1d1c0042_set_params':
>> qm1d1c0042.c:(.text+0x2519730): undefined reference to `__divdi3'
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/tuners/qm1d1c0042.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/tuners/qm1d1c0042.c b/drivers/media/tuners/qm1d1c0042.c index 585594b9c4f8..18bc745ed108 100644 --- a/drivers/media/tuners/qm1d1c0042.c +++ b/drivers/media/tuners/qm1d1c0042.c | |||
@@ -28,6 +28,7 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #include <linux/kernel.h> | 30 | #include <linux/kernel.h> |
31 | #include <linux/math64.h> | ||
31 | #include "qm1d1c0042.h" | 32 | #include "qm1d1c0042.h" |
32 | 33 | ||
33 | #define QM1D1C0042_NUM_REGS 0x20 | 34 | #define QM1D1C0042_NUM_REGS 0x20 |
@@ -234,7 +235,9 @@ static int qm1d1c0042_set_params(struct dvb_frontend *fe) | |||
234 | * sd = b (b >= 0) | 235 | * sd = b (b >= 0) |
235 | * 1<<22 + b (b < 0) | 236 | * 1<<22 + b (b < 0) |
236 | */ | 237 | */ |
237 | b = (((s64) freq) << 20) / state->cfg.xtal_freq - (((s64) a) << 20); | 238 | b = (s32)div64_s64(((s64) freq) << 20, state->cfg.xtal_freq) |
239 | - (((s64) a) << 20); | ||
240 | |||
238 | if (b >= 0) | 241 | if (b >= 0) |
239 | sd = b; | 242 | sd = b; |
240 | else | 243 | else |