net: davinci emac: use dma_{map, unmap}_single API for cache coherency
authorSekhar Nori <nsekhar@ti.com>
Tue, 9 Mar 2010 01:20:37 +0000 (01:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Mar 2010 22:46:59 +0000 (15:46 -0700)
commitbe5bce2bf5cfe021bc6bdff4d49fa18776bc293d
treeb5c545837570c42b79e10e603fcdec506e93cae3
parent211a0d941b1924e667483f822a55e2cc694cd212
net: davinci emac: use dma_{map, unmap}_single API for cache coherency

The davinci emac driver uses some ARM specific DMA APIs
for cache coherency which have been removed from kernel
with the 2.6.34 merge.

Modify the driver to use the dma_{map, unmap}_single() APIs
defined in dma-mapping.h

Without this fix, the driver fails to compile on Linus's
tree.

Tested on DM365 and OMAP-L138 EVMs.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/davinci_emac.c