Skip to content

Commit

Permalink
mwifiex: print driver version information
Browse files Browse the repository at this point in the history
Add code to display driver version information in dmesg after
loading the driver successfully.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Amitkumar Karwar authored and John W. Linville committed Aug 9, 2011
1 parent 7e1f79a commit 5674fbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/wireless/mwifiex/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ mwifiex_add_card(void *card, struct semaphore *sem,
{
int i;
struct mwifiex_adapter *adapter;
char fmt[64];

if (down_interruptible(sem))
goto exit_sem_err;
Expand Down Expand Up @@ -897,6 +898,9 @@ mwifiex_add_card(void *card, struct semaphore *sem,

up(sem);

mwifiex_drv_get_driver_version(adapter, fmt, sizeof(fmt) - 1);
dev_notice(adapter->dev, "driver_version = %s\n", fmt);

return 0;

err_add_intf:
Expand Down

0 comments on commit 5674fbb

Please sign in to comment.