400-ath_move_debug_code.patch 706 B

123456789101112131415161718192021222324252627
  1. --- a/drivers/net/wireless/ath/Makefile
  2. +++ b/drivers/net/wireless/ath/Makefile
  3. @@ -8,6 +8,5 @@ obj-$(CONFIG_ATH_COMMON) += ath.o
  4. ath-objs := main.o \
  5. regd.o \
  6. hw.o \
  7. - key.o
  8. -
  9. -ath-$(CONFIG_ATH_DEBUG) += debug.o
  10. + key.o \
  11. + debug.o
  12. --- a/drivers/net/wireless/ath/ath.h
  13. +++ b/drivers/net/wireless/ath/ath.h
  14. @@ -272,13 +272,6 @@ void ath_dbg(struct ath_common *common,
  15. #endif /* CONFIG_ATH_DEBUG */
  16. /** Returns string describing opmode, or NULL if unknown mode. */
  17. -#ifdef CONFIG_ATH_DEBUG
  18. const char *ath_opmode_to_string(enum nl80211_iftype opmode);
  19. -#else
  20. -static inline const char *ath_opmode_to_string(enum nl80211_iftype opmode)
  21. -{
  22. - return "UNKNOWN";
  23. -}
  24. -#endif
  25. #endif /* ATH_H */