]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wilc1000: wilc_wlan_init: add argument struct net_device
authorGlen Lee <glen.lee@atmel.com>
Thu, 29 Oct 2015 03:18:47 +0000 (12:18 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch adds an argument dev and pass dev to the function.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wlan.c
drivers/staging/wilc1000/wilc_wlan_if.h

index c9a64c14188a8b4ed18dda18e88c40ce4363e8dc..fee8c61385b2a2cf87973a722641be8cae6deba9 100644 (file)
@@ -1095,7 +1095,7 @@ int wilc1000_wlan_init(struct net_device *dev, perInterface_wlan_t *p_nic)
 
                linux_to_wlan(&nwi, wl);
 
-               ret = wilc_wlan_init(&nwi);
+               ret = wilc_wlan_init(dev, &nwi);
                if (ret < 0) {
                        PRINT_ER("Initializing WILC_Wlan FAILED\n");
                        ret = -EIO;
index 03593b7e50e23c6f78457e564f3302345a3a37f7..5a480a123acd8cf0dbf437a88c929cf9ea8fe30c 100644 (file)
@@ -1951,7 +1951,7 @@ _fail_:
        return chipid;
 }
 
-int wilc_wlan_init(wilc_wlan_inp_t *inp)
+int wilc_wlan_init(struct net_device *dev, wilc_wlan_inp_t *inp)
 {
 
        int ret = 0;
index be972afe6e620f0f32df1c65048cc40d59c0cedc..139cc6d388945230af7d8a9d19e3b9aa15393449 100644 (file)
@@ -937,7 +937,7 @@ typedef enum {
        WID_MAX                         = 0xFFFF
 } WID_T;
 
-int wilc_wlan_init(wilc_wlan_inp_t *inp);
+int wilc_wlan_init(struct net_device *dev, wilc_wlan_inp_t *inp);
 
 void wilc_bus_set_max_speed(void);
 void wilc_bus_set_default_speed(void);