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

staging: wilc1000: wilc_wlan_init: add argument net_device

This patch adds new argument struct net_device and pass the function dev.
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 47a466f1
...@@ -1870,7 +1870,7 @@ void wilc_bus_set_default_speed(void) ...@@ -1870,7 +1870,7 @@ void wilc_bus_set_default_speed(void)
/* Restore bus speed to default. */ /* Restore bus speed to default. */
g_wlan.hif_func.hif_set_default_bus_speed(); g_wlan.hif_func.hif_set_default_bus_speed();
} }
u32 init_chip(void) u32 init_chip(struct net_device *dev)
{ {
u32 chipid; u32 chipid;
u32 reg, ret = 0; u32 reg, ret = 0;
...@@ -2028,7 +2028,7 @@ int wilc_wlan_init(struct net_device *dev, wilc_wlan_inp_t *inp) ...@@ -2028,7 +2028,7 @@ int wilc_wlan_init(struct net_device *dev, wilc_wlan_inp_t *inp)
} }
#endif #endif
if (!init_chip()) { if (!init_chip(dev)) {
/* EIO 5 */ /* EIO 5 */
ret = -5; ret = -5;
goto _fail_; goto _fail_;
......
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