Changeset 2281
- Timestamp:
- 04/21/07 05:49:13 (2 years ago)
- Files:
-
- branches/dadwifi/ath/if_ath.c (modified) (2 diffs)
- branches/dadwifi/ath_hal/ah_os.c (modified) (1 diff)
- branches/dadwifi/include/compat.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dadwifi/ath/if_ath.c
r2204 r2281 9023 9023 9024 9024 /* and register everything */ 9025 sc->sc_sysctl_header = register_sysctl_table(sc->sc_sysctls);9025 sc->sc_sysctl_header = ATH_REGISTER_SYSCTL_TABLE(sc->sc_sysctls); 9026 9026 if (!sc->sc_sysctl_header) { 9027 9027 printk("%s: failed to register sysctls!\n", sc->name); … … 9179 9179 9180 9180 if (!initialized) { 9181 ath_sysctl_header = register_sysctl_table(ath_root_table);9181 ath_sysctl_header = ATH_REGISTER_SYSCTL_TABLE(ath_root_table); 9182 9182 initialized = 1; 9183 9183 } branches/dadwifi/ath_hal/ah_os.c
r2145 r2281 522 522 if (!initialized) { 523 523 ath_hal_sysctl_header = 524 register_sysctl_table(ath_root_table);524 ATH_REGISTER_SYSCTL_TABLE(ath_root_table); 525 525 initialized = 1; 526 526 } branches/dadwifi/include/compat.h
r2145 r2281 55 55 } while (0) 56 56 57 /* 58 * Fixes for Linux API changes 59 */ 60 #ifdef __KERNEL__ 61 62 #include <linux/version.h> 63 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21) 64 #define ATH_REGISTER_SYSCTL_TABLE(t) register_sysctl_table(t, 1) 65 #else 66 #define ATH_REGISTER_SYSCTL_TABLE(t) register_sysctl_table(t) 67 #endif 68 69 #endif /* __KERNEL__ */ 70 57 71 #endif /* _ATH_COMPAT_H_ */
