mwifiex: move pcie_work and related variables inside card
authorGanapathi Bhat <gbhat@marvell.com>
Wed, 16 Nov 2016 13:09:09 +0000 (18:39 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 12 Jan 2017 14:44:30 +0000 (16:44 +0200)
commit3860e5e39532050c010a0c61c3a980f4a7d4542c
tree9c630c9624aa11061a8d9d0b2438cae194c01e69
parent41efaf5824e7cb16c54bbec1273d86d80cdac283
mwifiex: move pcie_work and related variables inside card

Currently pcie_work and related variables are global. It may create
problem while supporting multiple devices simultaneously. Let's move
it inside card structure so that separate instance will be created/
cancelled in init/teardown threads of each connected devices.

Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/pcie.c
drivers/net/wireless/marvell/mwifiex/pcie.h