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);