sh_eth: Fix DMA-API usage for RX buffers
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Tue, 27 Jan 2015 00:50:24 +0000 (00:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jan 2015 08:18:54 +0000 (00:18 -0800)
commit52b9fa3696c44151a2f1d361a00be7c5513db026
treecd61f6cb3d68d8a6a6351ff84dcfc3db3c24b2b5
parentaa3933b87309c61b4fa4bb93c1ad4c3f08afb1b8
sh_eth: Fix DMA-API usage for RX buffers

- Use the return value of dma_map_single(), rather than calling
  virt_to_page() separately
- Check for mapping failue
- Call dma_unmap_single() rather than dma_sync_single_for_cpu()

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c