Olaf Titz <olaf@bigred.inka.de> patches for the SIS5595 driver

It still does not work - but I need more feedback to determine what
is happening.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@674 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-12-24 19:44:34 +00:00
1 parent 406af47121
commit 258c8dd869
1 file changed
+3 -3
+3 -3
View File
@@ -238,7 +238,7 @@ int sis5595_transaction(void)
}
/* start the transaction by setting bit 4 */
sis5595_write(SMB_CTL_LO,sis5595_read(SMB_CTL_LO));
sis5595_write(SMB_CTL_LO,sis5595_read(SMB_CTL_LO)|0x10);
/* We will always wait for a fraction of a second! */
do {
@@ -250,8 +250,8 @@ int sis5595_transaction(void)
if (timeout >= MAX_TIMEOUT) {
#ifdef DEBUG
printk("i2c-sis5595.o: SMBus Timeout!\n");
result = -1;
#endif
result = -1;
}
if (temp & 0x10) {
@@ -407,7 +407,7 @@ int __init sis5595_cleanup(void)
sis5595_initialized--;
}
if (sis5595_initialized >= 1) {
release_region(sis5595_base, 2);
release_region(sis5595_base + SMB_INDEX, 2);
sis5595_initialized--;
}
return 0;