110-disable_usb_compat.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --- a/compat/compat-2.6.28.c
  2. +++ b/compat/compat-2.6.28.c
  3. @@ -165,7 +165,7 @@ EXPORT_SYMBOL(pcmcia_loop_config);
  4. #endif /* CONFIG_PCMCIA */
  5. -#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
  6. +#if 0
  7. void usb_unpoison_urb(struct urb *urb)
  8. {
  9. --- a/compat/compat-2.6.29.c
  10. +++ b/compat/compat-2.6.29.c
  11. @@ -49,7 +49,7 @@ void netdev_attach_ops(struct net_device
  12. EXPORT_SYMBOL(netdev_attach_ops);
  13. #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
  14. -#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
  15. +#if 0
  16. /**
  17. * usb_unpoison_anchored_urbs - let an anchor be used successfully again
  18. * @anchor: anchor the requests are bound to
  19. --- a/include/linux/compat-2.6.28.h
  20. +++ b/include/linux/compat-2.6.28.h
  21. @@ -52,7 +52,7 @@ int pcmcia_loop_config(struct pcmcia_dev
  22. /* USB anchors were added as of 2.6.23 */
  23. #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23))
  24. -#if defined(CONFIG_USB) || defined(CONFIG_USB_MODULE)
  25. +#if 0
  26. #if 0
  27. extern void usb_poison_urb(struct urb *urb);
  28. #endif
  29. --- a/config.mk
  30. +++ b/config.mk
  31. @@ -389,7 +389,7 @@ endif #CONFIG_COMPAT_KERNEL_29
  32. # This activates a threading fix for usb urb.
  33. # this is mainline commit: b3e670443b7fb8a2d29831b62b44a039c283e351
  34. # This fix will be included in some stable releases.
  35. -CONFIG_COMPAT_USB_URB_THREAD_FIX=y
  36. +# CONFIG_COMPAT_USB_URB_THREAD_FIX=y
  37. CONFIG_ATH9K_HTC=m
  38. # CONFIG_ATH9K_HTC_DEBUGFS=y