compile fix for 2.2 kernels

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1657 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2002-12-01 21:02:46 +00:00
1 parent 39d845c73b
commit 01e6b327ed
1 file changed
+4
+4
View File
@@ -324,7 +324,11 @@ static int sis645_setup(void)
}
/* get the IO base address */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,13)
sis645_smbus_base = SIS645_SMBUS_dev->resource[BASE_IO_REG].start;
#else
sis645_smbus_base = SIS645_SMBUS_dev->base_address[BASE_IO_REG];
#endif
if (!sis645_smbus_base) {
printk("i2c-sis645.o: SiS645 SMBus base address not initialized!\n");
return -EINVAL;