Commit 47a466f1 authored by Glen Lee's avatar Glen Lee Committed by Greg Kroah-Hartman

staging: wilc1000: wilc_wlan_init: add argument struct net_device

This patch adds an argument dev and pass dev to the function.
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9bf3d727
......@@ -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;
......
......@@ -1951,7 +1951,7 @@ u32 wilc_get_chipid(u8 update)
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;
......
......@@ -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);
......
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