Commit 5674fbb7 authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by John W. Linville

mwifiex: print driver version information

Add code to display driver version information in dmesg after
loading the driver successfully.
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarYogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7e1f79a1
...@@ -849,6 +849,7 @@ mwifiex_add_card(void *card, struct semaphore *sem, ...@@ -849,6 +849,7 @@ mwifiex_add_card(void *card, struct semaphore *sem,
{ {
int i; int i;
struct mwifiex_adapter *adapter; struct mwifiex_adapter *adapter;
char fmt[64];
if (down_interruptible(sem)) if (down_interruptible(sem))
goto exit_sem_err; goto exit_sem_err;
...@@ -897,6 +898,9 @@ mwifiex_add_card(void *card, struct semaphore *sem, ...@@ -897,6 +898,9 @@ mwifiex_add_card(void *card, struct semaphore *sem,
up(sem); up(sem);
mwifiex_drv_get_driver_version(adapter, fmt, sizeof(fmt) - 1);
dev_notice(adapter->dev, "driver_version = %s\n", fmt);
return 0; return 0;
err_add_intf: err_add_intf:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment