c60705a531f3c6ac995254be9365d0cf44681d95
[openwrt-10.03/.git] / package / mac80211 / patches / 110-disable_usb_compat.patch
1 --- a/compat/compat-2.6.28.c
2 +++ b/compat/compat-2.6.28.c
3 @@ -166,7 +166,7 @@ EXPORT_SYMBOL(pcmcia_loop_config);
4  
5  #endif /* CONFIG_PCMCIA */
6  
7 -#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
8 +#if 0
9  
10  void usb_unpoison_urb(struct urb *urb)
11  {
12 --- a/compat/compat-2.6.29.c
13 +++ b/compat/compat-2.6.29.c
14 @@ -51,7 +51,7 @@ void netdev_attach_ops(struct net_device
15  EXPORT_SYMBOL(netdev_attach_ops);
16  
17  #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
18 -#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
19 +#if 0
20  /**
21   * usb_unpoison_anchored_urbs - let an anchor be used successfully again
22   * @anchor: anchor the requests are bound to
23 --- a/include/linux/compat-2.6.28.h
24 +++ b/include/linux/compat-2.6.28.h
25 @@ -52,7 +52,7 @@ int pcmcia_loop_config(struct pcmcia_dev
26  /* USB anchors were added as of 2.6.23 */
27  #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
28  
29 -#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
30 +#if 0
31  #if 0
32  extern void usb_poison_urb(struct urb *urb);
33  #endif