Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219775
b: refs/heads/master
c: 2fac6c2
h: refs/heads/master
i:
  219773: 2020670
  219771: 6987709
  219767: e308c8c
  219759: 614fbd6
  219743: 791f06e
  219711: eccc417
  219647: 991ee1a
v: v3
  • Loading branch information
Vasiliy Kulikov authored and Greg Kroah-Hartman committed Sep 5, 2010
1 parent 0e2eeab commit 9137fd0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e5a7dc54eedde81e87832e02ba0f6b8c5a4d2d48
refs/heads/master: 2fac6c290f9e7ac98256e9deaa668f6c2c305cf2
23 changes: 18 additions & 5 deletions trunk/drivers/staging/rtl8192u/r8192U_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5793,10 +5793,12 @@ static int __devinit rtl8192_usb_probe(struct usb_interface *intf,
struct net_device *dev = NULL;
struct r8192_priv *priv= NULL;
struct usb_device *udev = interface_to_usbdev(intf);
int ret;
RT_TRACE(COMP_INIT, "Oops: i'm coming\n");

dev = alloc_ieee80211(sizeof(struct r8192_priv));

if (dev == NULL)
return -ENOMEM;

usb_set_intfdata(intf, dev);
SET_NETDEV_DEV(dev, &intf->dev);
Expand Down Expand Up @@ -5826,26 +5828,37 @@ static int __devinit rtl8192_usb_probe(struct usb_interface *intf,
RT_TRACE(COMP_INIT, "Driver probe completed1\n");
if(rtl8192_init(dev)!=0){
RT_TRACE(COMP_ERR, "Initialization failed");
ret = -ENODEV;
goto fail;
}
netif_carrier_off(dev);
netif_stop_queue(dev);

register_netdev(dev);
ret = register_netdev(dev);
if (ret)
goto fail2;

RT_TRACE(COMP_INIT, "dev name=======> %s\n",dev->name);
rtl8192_proc_init_one(dev);


RT_TRACE(COMP_INIT, "Driver probe completed\n");
return 0;


fail2:
rtl8192_down(dev);
if (priv->pFirmware) {
kfree(priv->pFirmware);
priv->pFirmware = NULL;
}
rtl8192_usb_deleteendpoints(dev);
destroy_workqueue(priv->priv_wq);
mdelay(10);
fail:
free_ieee80211(dev);

RT_TRACE(COMP_ERR, "wlan driver load failed\n");
return -ENODEV;

return ret;
}

//detach all the work and timer structure declared or inititialize in r8192U_init function.
Expand Down

0 comments on commit 9137fd0

Please sign in to comment.