summaryrefslogtreecommitdiff
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorGianluca Gennari <gennarone@gmail.com>2012-03-04 21:19:41 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-08 10:13:57 (GMT)
commit479e3492a262196631d69a9245a45420a354bec5 (patch)
tree702e14ff2e83382089d649c8d9c86ca558bbeefd /drivers/media/dvb
parent1b741bc3db4ffd43abdfdaa74445338480366c55 (diff)
downloadlinux-479e3492a262196631d69a9245a45420a354bec5.tar.xz
[media] rtl2830: __udivdi3 undefined
Il 29/02/2012 22:30, Geert Uytterhoeven ha scritto: > http://kisskb.ellerman.id.au/kisskb/buildresult/5759200/ ERROR: > "__udivdi3" [drivers/media/dvb/frontends/rtl2830.ko] undefined! > The following patch fixed the warning on my 32 bit system. Signed-off-by: Gianluca Gennari <gennarone@gmail.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/rtl2830.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/rtl2830.c b/drivers/media/dvb/frontends/rtl2830.c
index f971d94..45196c5 100644
--- a/drivers/media/dvb/frontends/rtl2830.c
+++ b/drivers/media/dvb/frontends/rtl2830.c
@@ -244,7 +244,7 @@ static int rtl2830_init(struct dvb_frontend *fe)
num = priv->cfg.if_dvbt % priv->cfg.xtal;
num *= 0x400000;
- num /= priv->cfg.xtal;
+ num = div_u64(num, priv->cfg.xtal);
num = -num;
if_ctl = num & 0x3fffff;
dbg("%s: if_ctl=%08x", __func__, if_ctl);