]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: Allow mwifiex early access to device structure
authorRajat Jain <rajatja@google.com>
Tue, 15 Nov 2016 13:36:02 +0000 (19:06 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 19 Nov 2016 07:13:11 +0000 (09:13 +0200)
commit044dc0ac3f24345ce1c8e05b61ac93e6ab48c25f
tree2ddce83dbf045a292c9d8958aa2bb44c2bee8292
parentefdc624d7c6f685b30dbbae28d6b47b12a258485
mwifiex: Allow mwifiex early access to device structure

Today all the interface drivers (usb/pcie/sdio) assign the
adapter->dev in the register_dev() callback, although they
have this piece of info well before hand.

This patch makes the device structure available for mwifiex
right at the beginning, so that it can be used for early
initialization if needed.

This is needed for subsequent patches in this patchset that
intend to unify and consolidate some of the code that would
otherwise have to be duplicated among the interface drivers
(sdio, pcie, usb).

Signed-off-by: Rajat Jain <rajatja@google.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.c
drivers/net/wireless/marvell/mwifiex/main.h
drivers/net/wireless/marvell/mwifiex/pcie.c
drivers/net/wireless/marvell/mwifiex/sdio.c
drivers/net/wireless/marvell/mwifiex/usb.c