Changeset 2755

Show
Ignore:
Timestamp:
10/17/07 06:31:16 (1 year ago)
Author:
kelmo
Message:

Fix compilation for the forthcoming Linux 2.6.24

SET_MODULE_OWNER() is not defined in 2.6.24, but it's already a no-op in
2.6.23. Make sure that it will be a no-op in 2.6.23 and newer kernels.

Reference changeset: r2754

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/releases/0.9.3/ath/if_athvar.h

    r2616 r2755  
    102102 
    103103#ifndef SET_MODULE_OWNER 
     104#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) 
    104105#define SET_MODULE_OWNER(dev) do {              \ 
    105106        dev->owner = THIS_MODULE;               \ 
    106107} while (0) 
     108#else 
     109#define SET_MODULE_OWNER(dev) do { } while (0) 
     110#endif 
    107111#endif 
    108112