diff options
author | Ulrich Kunitz <kune@deine-taler.de> | 2007-01-28 19:59:28 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-02-07 15:23:54 -0500 |
commit | 6e3632f66110b144183d53d550a51cbbbabc178f (patch) | |
tree | c6701bb3fa0258528a9232f5aa3976f4512736c2 | |
parent | 95c777956d64c60631a637eb9a142fea88fb1e78 (diff) |
[PATCH] zd1211rw: Reset device in the probe call
This resets the device in the probe call. It does work with
2.6.19.2 including the softmac patches. It might fix the
reboot/reset problems a lot of people reported.
Signed-off-by: Ulrich Kunitz <kune@deine-taler.de>
Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_usb.c b/drivers/net/wireless/zd1211rw/zd_usb.c index 2468ad662d3d..3ac308af24ae 100644 --- a/drivers/net/wireless/zd1211rw/zd_usb.c +++ b/drivers/net/wireless/zd1211rw/zd_usb.c | |||
@@ -1027,6 +1027,8 @@ static int probe(struct usb_interface *intf, const struct usb_device_id *id) | |||
1027 | goto error; | 1027 | goto error; |
1028 | } | 1028 | } |
1029 | 1029 | ||
1030 | usb_reset_device(interface_to_usbdev(intf)); | ||
1031 | |||
1030 | netdev = zd_netdev_alloc(intf); | 1032 | netdev = zd_netdev_alloc(intf); |
1031 | if (netdev == NULL) { | 1033 | if (netdev == NULL) { |
1032 | r = -ENOMEM; | 1034 | r = -ENOMEM; |