[media] rtl2830: __udivdi3 undefined
authorGianluca Gennari <gennarone@gmail.com>
Sun, 4 Mar 2012 21:19:41 +0000 (18:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 8 Mar 2012 10:13:57 +0000 (07:13 -0300)
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>
drivers/media/dvb/frontends/rtl2830.c

index f971d949b2aff19a3dc5c35976c1c467b0e615ae..45196c5b0736c2bb222907e58a46f5649356e990 100644 (file)
@@ -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);