qede: Fix incorrrect usage of APIs for un-mapping DMA memory
authorManish Chopra <manish.chopra@qlogic.com>
Fri, 21 Oct 2016 08:43:45 +0000 (04:43 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Oct 2016 21:08:07 +0000 (17:08 -0400)
commitfabd545c6d27ac1977fe567c43cd4c72fad04172
treec0df8515b2ea1dc8834a4ec46ca60127b025fc5e
parent15c6de2c65048d45484e396194ba2598618d4cb4
qede: Fix incorrrect usage of APIs for un-mapping DMA memory

Driver uses incorrect APIs to unmap DMA memory which were
mapped using dma_map_single(). This patch fixes it to use
appropriate APIs for un-mapping DMA memory.

Signed-off-by: Manish Chopra <manish.chopra@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_ethtool.c
drivers/net/ethernet/qlogic/qede/qede_main.c