Changeset 2281

Show
Ignore:
Timestamp:
04/21/07 05:49:13 (2 years ago)
Author:
proski
Message:

Restore Linux 2.6.20 support to fix compilation on Ubuntu 7.04

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/dadwifi/ath/if_ath.c

    r2204 r2281  
    90239023 
    90249024        /* 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); 
    90269026        if (!sc->sc_sysctl_header) { 
    90279027                printk("%s: failed to register sysctls!\n", sc->name); 
     
    91799179 
    91809180        if (!initialized) { 
    9181                 ath_sysctl_header = register_sysctl_table(ath_root_table); 
     9181                ath_sysctl_header = ATH_REGISTER_SYSCTL_TABLE(ath_root_table); 
    91829182                initialized = 1; 
    91839183        } 
  • branches/dadwifi/ath_hal/ah_os.c

    r2145 r2281  
    522522        if (!initialized) { 
    523523                ath_hal_sysctl_header = 
    524                         register_sysctl_table(ath_root_table); 
     524                        ATH_REGISTER_SYSCTL_TABLE(ath_root_table); 
    525525                initialized = 1; 
    526526        } 
  • branches/dadwifi/include/compat.h

    r2145 r2281  
    5555} while (0) 
    5656 
     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 
    5771#endif /* _ATH_COMPAT_H_ */