mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-03 13:38:25 +00:00
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:
1 parent
39d845c73b
commit
01e6b327ed
1 file changed
+4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user