qede: Fix DMA address APIs usage
authorManish Chopra <manish.chopra@qlogic.com>
Wed, 18 May 2016 11:43:57 +0000 (07:43 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 May 2016 18:15:31 +0000 (11:15 -0700)
commit09ec8e7fb6bcb351bbded18a571ea037504bb3a6
tree219777531af857e5a3cfb1ed803f35f68abb07f4
parent1968a0b8b6ca088bc029bd99ee696f1aca4090d0
qede: Fix DMA address APIs usage

Driver incorrectly uses dma_unmap_addr_set() to set
a variable which is in truth a dma_addr_t
[i.e not defined using DEFINE_DMA_UNMAP_ADDR()] and is
being used by the driver flows other than unmapping
physical addresses. This patch fixes driver fastpath
where CONFIG_NEED_DMA_MAP_STATE is not set.

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