600-rt2x00-disable-pci-code-if-CONFIG_PCI-not-defined.patch 446 B

123456789101112131415161718
  1. --- a/drivers/net/wireless/rt2x00/rt2x00pci.c
  2. +++ b/drivers/net/wireless/rt2x00/rt2x00pci.c
  3. @@ -209,6 +209,7 @@ void rt2x00pci_uninitialize(struct rt2x0
  4. }
  5. EXPORT_SYMBOL_GPL(rt2x00pci_uninitialize);
  6. +#ifdef CONFIG_PCI
  7. /*
  8. * PCI driver handlers.
  9. */
  10. @@ -388,6 +389,7 @@ int rt2x00pci_resume(struct pci_dev *pci
  11. }
  12. EXPORT_SYMBOL_GPL(rt2x00pci_resume);
  13. #endif /* CONFIG_PM */
  14. +#endif /* CONFIG_PCI */
  15. /*
  16. * rt2x00pci module information.