mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 07:34:03 -04:00
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: Glen Lee <glen.lee@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
47a466f1d8
commit
ae6f772ddf
@@ -1870,7 +1870,7 @@ void wilc_bus_set_default_speed(void)
|
||||
/* Restore bus speed to default. */
|
||||
g_wlan.hif_func.hif_set_default_bus_speed();
|
||||
}
|
||||
u32 init_chip(void)
|
||||
u32 init_chip(struct net_device *dev)
|
||||
{
|
||||
u32 chipid;
|
||||
u32 reg, ret = 0;
|
||||
@@ -2028,7 +2028,7 @@ int wilc_wlan_init(struct net_device *dev, wilc_wlan_inp_t *inp)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!init_chip()) {
|
||||
if (!init_chip(dev)) {
|
||||
/* EIO 5 */
|
||||
ret = -5;
|
||||
goto _fail_;
|
||||
|
||||
Reference in New Issue
Block a user