mwifiex: print driver version information
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 3 Aug 2011 01:42:23 +0000 (18:42 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 9 Aug 2011 19:52:03 +0000 (15:52 -0400)
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>
drivers/net/wireless/mwifiex/main.c

index e5fc53dc6887411152063c4692517aef2fe7e1e1..53579ad83e5c2d8e3b6e07404bf61321f4a1375d 100644 (file)
@@ -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;
@@ -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: