mlx4_en: fix a build error on 32bit arches
authorEric Dumazet <edumazet@google.com>
Tue, 30 Apr 2013 10:53:51 +0000 (10:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Apr 2013 23:00:25 +0000 (19:00 -0400)
commitfe86d714168f1567989c309f73a3550022686301
treee8e95e9a96b4b42e1e94971b16cac6b0eced1312
parent97cd1ee6ef24eadf42bb199ab20bdc07cf919939
mlx4_en: fix a build error on 32bit arches

commit b6c39bfcf1d7d63 ("net/mlx4_en: Add a service task")
added a build error on 32bit arches.

ERROR: "__udivdi3" [drivers/net/ethernet/mellanox/mlx4/mlx4_en.ko]
undefined!

Fix this problem by using do_div()

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_clock.c