811-pci_disable_usb_common_quirks.patch 473 B

123456789101112131415161718
  1. --- a/drivers/usb/host/pci-quirks.c
  2. +++ b/drivers/usb/host/pci-quirks.c
  3. @@ -429,6 +429,8 @@ reset_needed:
  4. }
  5. EXPORT_SYMBOL_GPL(uhci_check_and_reset_hc);
  6. +#ifndef CONFIG_PCI_DISABLE_COMMON_QUIRKS
  7. +
  8. static inline int io_type_enabled(struct pci_dev *pdev, unsigned int mask)
  9. {
  10. u16 cmd;
  11. @@ -883,3 +885,5 @@ static void __devinit quirk_usb_early_ha
  12. quirk_usb_handoff_xhci(pdev);
  13. }
  14. DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, quirk_usb_early_handoff);
  15. +
  16. +#endif