From 75dd7e42d7b48d06b66a8073db24a7000120826b Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Mon, 14 Dec 1998 03:28:44 +0000 Subject: [PATCH] Small bug fixed which made it impossible to detect more than one LM78. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@77 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/lm78.c | 2 ++ src/lm78.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/kernel/chips/lm78.c b/kernel/chips/lm78.c index ce36d32a..d9c72388 100644 --- a/kernel/chips/lm78.c +++ b/kernel/chips/lm78.c @@ -389,6 +389,7 @@ int lm78_detect_isa(struct isa_adapter *adapter) lm78_dir_table_template)) < 0) goto ERROR4; ((struct lm78_data *) (new_client->data)) -> sysctl_id = err; + err = 0; /* Initialize the LM78 chip */ lm78_init_client((struct i2c_client *) new_client); @@ -506,6 +507,7 @@ int lm78_detect_smbus(struct i2c_adapter *adapter) lm78_dir_table_template)) < 0) goto ERROR4; ((struct lm78_data *) (new_client->data))->sysctl_id = err; + err = 0; /* Initialize the LM78 chip */ lm78_init_client(new_client); diff --git a/src/lm78.c b/src/lm78.c index ce36d32a..d9c72388 100644 --- a/src/lm78.c +++ b/src/lm78.c @@ -389,6 +389,7 @@ int lm78_detect_isa(struct isa_adapter *adapter) lm78_dir_table_template)) < 0) goto ERROR4; ((struct lm78_data *) (new_client->data)) -> sysctl_id = err; + err = 0; /* Initialize the LM78 chip */ lm78_init_client((struct i2c_client *) new_client); @@ -506,6 +507,7 @@ int lm78_detect_smbus(struct i2c_adapter *adapter) lm78_dir_table_template)) < 0) goto ERROR4; ((struct lm78_data *) (new_client->data))->sysctl_id = err; + err = 0; /* Initialize the LM78 chip */ lm78_init_client(new_client);