mwifiex: use pci_alloc/free_consistent APIs for PCIe
authorAvinash Patil <patila@marvell.com>
Fri, 4 Jan 2013 05:21:30 +0000 (21:21 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Jan 2013 20:18:30 +0000 (15:18 -0500)
commitfc3314609047daf472b3ffc49f9a1c5608068713
tree8e5c9a01fb61337e7f7a996ff78d31f749d47112
parentc6d1d87a10d1e5317701676c39bbec20e4651b91
mwifiex: use pci_alloc/free_consistent APIs for PCIe

This patch uses pci_alloc_consistent and pci_free_consistent
APIs for mwifiex_pcie driver. Consistent DMA memory is allocated
for TX, RX and event rings. Command buffer and command response
buffer also uses map/unmap memory APIs to download commands and
get command responses.

Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c
drivers/net/wireless/mwifiex/pcie.h
drivers/net/wireless/mwifiex/sta_cmd.c
drivers/net/wireless/mwifiex/util.h