diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/wireless/rt2x00/rt2x00usb.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00usb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00usb.c b/drivers/net/wireless/rt2x00/rt2x00usb.c index f02b48a90593..f9a7f8b17411 100644 --- a/drivers/net/wireless/rt2x00/rt2x00usb.c +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | Copyright (C) 2004 - 2009 rt2x00 SourceForge Project | 2 | Copyright (C) 2004 - 2009 Ivo van Doorn <IvDoorn@gmail.com> |
3 | <http://rt2x00.serialmonkey.com> | 3 | <http://rt2x00.serialmonkey.com> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
@@ -25,6 +25,7 @@ | |||
25 | 25 | ||
26 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | #include <linux/slab.h> | ||
28 | #include <linux/usb.h> | 29 | #include <linux/usb.h> |
29 | #include <linux/bug.h> | 30 | #include <linux/bug.h> |
30 | 31 | ||
@@ -160,7 +161,7 @@ EXPORT_SYMBOL_GPL(rt2x00usb_vendor_request_large_buff); | |||
160 | 161 | ||
161 | int rt2x00usb_regbusy_read(struct rt2x00_dev *rt2x00dev, | 162 | int rt2x00usb_regbusy_read(struct rt2x00_dev *rt2x00dev, |
162 | const unsigned int offset, | 163 | const unsigned int offset, |
163 | struct rt2x00_field32 field, | 164 | const struct rt2x00_field32 field, |
164 | u32 *reg) | 165 | u32 *reg) |
165 | { | 166 | { |
166 | unsigned int i; | 167 | unsigned int i; |
@@ -653,6 +654,8 @@ int rt2x00usb_probe(struct usb_interface *usb_intf, | |||
653 | rt2x00dev->ops = ops; | 654 | rt2x00dev->ops = ops; |
654 | rt2x00dev->hw = hw; | 655 | rt2x00dev->hw = hw; |
655 | 656 | ||
657 | rt2x00_set_chip_intf(rt2x00dev, RT2X00_CHIP_INTF_USB); | ||
658 | |||
656 | retval = rt2x00usb_alloc_reg(rt2x00dev); | 659 | retval = rt2x00usb_alloc_reg(rt2x00dev); |
657 | if (retval) | 660 | if (retval) |
658 | goto exit_free_device; | 661 | goto exit_free_device; |