bcm47xx: Add basic 2.6.32 support.
[openwrt-10.03/.git] / package / mac80211 / patches / 011-move_ar9170_usb_compat_code.patch
index 2a705b5ce0b5a10f30b49f9bdf5a7ecb5c6a44d3..52b90b004da86e552c2aa51fe496b88474a93289 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/wireless/ath/ar9170/usb.c
 +++ b/drivers/net/wireless/ath/ar9170/usb.c
-@@ -96,6 +96,225 @@ static struct usb_device_id ar9170_usb_i
+@@ -100,6 +100,225 @@ static struct usb_device_id ar9170_usb_i
  };
  MODULE_DEVICE_TABLE(usb, ar9170_usb_ids);
  
  
 -extern void usb_unpoison_anchored_urbs(struct usb_anchor *anchor);
 -
- #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)) */
- #endif /*  LINUX_26_29_COMPAT_H */
+ #define DIV_ROUND_CLOSEST(x, divisor)(                        \
+ {                                                     \
+       typeof(divisor) __divisor = divisor;            \