Show
Ignore:
Timestamp:
09/13/99 21:19:16 (14 years ago)
Author:
frodo
Message:

Some minor patches to make in-kernel compilation for 2.0.x kernels

possible.

Most importantly, some compatibility declaration were moved out of
i2c.h (where they could interfere if you were not careful where you
included it) to the separate modules.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/kernel/i2c.h

    r3357 r3371  
    507507#ifdef __KERNEL__ 
    508508 
    509 #  if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) 
    510 /* Hack to make this thing compile under 2.0.xx kernels 
    511  */ 
    512  
    513 #  ifdef MODULE 
    514 #    define MODULE_AUTHOR(noone) 
    515 #    define MODULE_DESCRIPTION(none) 
    516 #    define MODULE_PARM(no,param) 
    517 #    define MODULE_PARM_DESC(no,description) 
    518 #    define EXPORT_SYMBOL(noexport) 
    519 #    define EXPORT_NO_SYMBOLS 
    520 #  endif 
    521  
    522509#  ifndef NULL 
    523510#    define NULL ( (void *) 0 ) 
    524511#  endif 
    525 #endif 
    526512 
    527513#  ifndef ENODEV