diff --git a/i2c/algo-bit.c b/i2c/algo-bit.c index bea9d109..33c2a70b 100644 --- a/i2c/algo-bit.c +++ b/i2c/algo-bit.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* ------------------------------------------------------------------------- */ -static char alg_rcsid[] = "$Id: algo-bit.c,v 1.7 1998/09/28 06:45:38 i2c Exp i2c $"; +static char alg_rcsid[] = "$Id: algo-bit.c,v 1.1 1998/11/02 20:29:27 frodo Exp $"; #include #include @@ -638,10 +638,10 @@ MODULE_PARM_DESC(bit_test, "Test the lines of the bus to see if it is stuck"); MODULE_PARM_DESC(bit_scan, "Scan for active chips on the bus"); MODULE_PARM_DESC(i2c_debug,"debug level - 0 off; 1 normal; 2,3 more verbose; 9 bit-protocol"); - +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0)) EXPORT_SYMBOL(i2c_bit_add_bus); EXPORT_SYMBOL(i2c_bit_del_bus); - +#endif int init_module(void) { @@ -653,13 +653,3 @@ void cleanup_module(void) i2c_del_algorithm(&bit_algo); } #endif - - - - - - - - - - diff --git a/i2c/i2c-core.c b/i2c/i2c-core.c index 03ae5532..0ee5bd1e 100644 --- a/i2c/i2c-core.c +++ b/i2c/i2c-core.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* ------------------------------------------------------------------------- */ -#define RCSID "$Id: i2c.c,v 1.7 1998/09/28 06:45:38 i2c Exp i2c $" +#define RCSID "$Id: i2c-core.c,v 1.1 1998/11/02 20:29:27 frodo Exp $" /* ------------------------------------------------------------------------- */ #include @@ -441,6 +441,7 @@ MODULE_DESCRIPTION("I2C-Bus main module"); MODULE_PARM(i2c_debug, "i"); MODULE_PARM_DESC(i2c_debug,"debug level"); +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0)) EXPORT_SYMBOL(i2c_add_algorithm); EXPORT_SYMBOL(i2c_del_algorithm); EXPORT_SYMBOL(i2c_add_adapter); @@ -454,7 +455,7 @@ EXPORT_SYMBOL(i2c_master_send); EXPORT_SYMBOL(i2c_master_recv); EXPORT_SYMBOL(i2c_control); EXPORT_SYMBOL(i2c_transfer); - +#endif int init_module(void) {