benet: use do_div() for 64 bit divide
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 27 Mar 2009 07:25:24 +0000 (00:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2009 07:25:24 +0000 (00:25 -0700)
commit65f71b8bd2651e6d6ca9b09fe53a8db2da22b85c
treed42820964a817c43ff9330711576816540a01ad0
parent7d0b591c655ca0d72ebcbd242cf659a20a8995c5
benet: use do_div() for 64 bit divide

The benet driver is doing a 64 bit divide, which is not supported in
Linux kernel on 32 bit architectures. The correct way to do this is to
use do_div().  Compile tested on i386 only.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c