--- NVIDIA-Linux-x86-1.0-8774-pkg0.orig/usr/src/nv/nv-i2c.c 2006-10-24 21:45:20.000000000 +0000 +++ NVIDIA-Linux-x86-1.0-8774-pkg0/usr/src/nv/nv-i2c.c 2006-10-24 21:58:23.000000000 +0000 @@ -20,6 +20,16 @@ static int nv_i2c_algo_control(struct i2c_adapter *adap, unsigned int dummy1, unsigned long dummy2); static u32 nv_i2c_algo_functionality(struct i2c_adapter *adap); +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 18) +static struct i2c_algorithm nv_i2c_algo = { + .master_xfer = nv_i2c_algo_xfer, + .smbus_xfer = NULL, + .algo_control = nv_i2c_algo_control, + .functionality = nv_i2c_algo_functionality, +}; + +#else + static struct i2c_algorithm nv_i2c_algo = { .master_xfer = nv_i2c_algo_xfer, .smbus_xfer = NULL, @@ -28,6 +38,7 @@ .algo_control = nv_i2c_algo_control, .functionality = nv_i2c_algo_functionality, }; +#endif // LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 18)