]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mwifiex: set adapter->dev before starting to use mwifiex_dbg()
authorBrian Norris <briannorris@chromium.org>
Sat, 11 Mar 2017 01:39:22 +0000 (17:39 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 16 Mar 2017 08:14:12 +0000 (10:14 +0200)
commitba1c7e45ec224cc8d2df33ecaee1946d48e79231
tree761f3ca7e08cbb0292b580cce6be98fbe46e78f2
parent4e841d3eb9294ce4137fdb5d0a88f1bceab9c212
mwifiex: set adapter->dev before starting to use mwifiex_dbg()

The mwifiex_dbg() log handler utilizes the struct device in
adapter->dev. Without it, it decides not to print anything.

As of commit 2e02b5814217 ("mwifiex: Allow mwifiex early access to device
structure"), we started assigning that pointer only after we finished
mwifiex_register() -- this effectively neuters any mwifiex_dbg() logging
done before this point.

Let's move the device assignment into mwifiex_register().

Fixes: 2e02b5814217 ("mwifiex: Allow mwifiex early access to device structure")
Cc: Rajat Jain <rajatja@google.com>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.c