From 258c8dd8694a0d0d4c627e0db187072f2e0f70b3 Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Fri, 24 Dec 1999 19:44:34 +0000 Subject: [PATCH] Olaf Titz 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 --- kernel/busses/i2c-sis5595.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/busses/i2c-sis5595.c b/kernel/busses/i2c-sis5595.c index fea74bec..278c4006 100644 --- a/kernel/busses/i2c-sis5595.c +++ b/kernel/busses/i2c-sis5595.c @@ -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;