diff options
author | Antti Palosaari <crope@iki.fi> | 2014-03-14 14:22:24 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-14 19:23:11 -0400 |
commit | ac8f392678da1d9839fdd10e3d5a0c9400b544fa (patch) | |
tree | 6400c3d26a5fc9b6561cda8253e36c5a0ba5ec0c /drivers/media | |
parent | ba35ca07080268af1badeb47de0f9eff28126339 (diff) |
[media] e4000: fix 32-bit build error
All error/warnings:
drivers/built-in.o: In function `e4000_set_params':
>> e4000.c:(.text+0x1219a1b): undefined reference to `__umoddi3'
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/tuners/e4000.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/tuners/e4000.c b/drivers/media/tuners/e4000.c index 3b5255062a0d..67ecf1bbfa1f 100644 --- a/drivers/media/tuners/e4000.c +++ b/drivers/media/tuners/e4000.c | |||
@@ -116,6 +116,7 @@ static int e4000_set_params(struct dvb_frontend *fe) | |||
116 | struct e4000 *s = fe->tuner_priv; | 116 | struct e4000 *s = fe->tuner_priv; |
117 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; | 117 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; |
118 | int ret, i, sigma_delta; | 118 | int ret, i, sigma_delta; |
119 | unsigned int pll_n, pll_f; | ||
119 | u64 f_vco; | 120 | u64 f_vco; |
120 | u8 buf[5], i_data[4], q_data[4]; | 121 | u8 buf[5], i_data[4], q_data[4]; |
121 | 122 | ||
@@ -141,8 +142,9 @@ static int e4000_set_params(struct dvb_frontend *fe) | |||
141 | } | 142 | } |
142 | 143 | ||
143 | f_vco = 1ull * c->frequency * e4000_pll_lut[i].mul; | 144 | f_vco = 1ull * c->frequency * e4000_pll_lut[i].mul; |
144 | sigma_delta = div_u64(0x10000ULL * (f_vco % s->clock), s->clock); | 145 | pll_n = div_u64_rem(f_vco, s->clock, &pll_f); |
145 | buf[0] = div_u64(f_vco, s->clock); | 146 | sigma_delta = div_u64(0x10000ULL * pll_f, s->clock); |
147 | buf[0] = pll_n; | ||
146 | buf[1] = (sigma_delta >> 0) & 0xff; | 148 | buf[1] = (sigma_delta >> 0) & 0xff; |
147 | buf[2] = (sigma_delta >> 8) & 0xff; | 149 | buf[2] = (sigma_delta >> 8) & 0xff; |
148 | buf[3] = 0x00; | 150 | buf[3] = 0x00; |