mwifiex: fall back mwifiex_dbg to pr_info when adapter->dev not set
authorXinming Hu <huxm@marvell.com>
Thu, 13 Apr 2017 06:48:20 +0000 (06:48 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 20 Apr 2017 07:18:07 +0000 (10:18 +0300)
commitef6c7d3cb731e3aa6a4ce8d501b97df73ea40b4e
tree9de63679282db1dd7a87985f5f803a95357bafcc
parent625b4dba57b256943a1714c7783e3cfbb52ce5c3
mwifiex: fall back mwifiex_dbg to pr_info when adapter->dev not set

mwifiex_dbg will do nothing before adapter->dev get assigned. several logs
lost in this case. it can be avoided by fall back to pr_info.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.c