Skip to contentSkip to conversation

hwmon: (adt7470) Return proper error code for adt7470_probe()

PATCH Applied Axel Lin 2 participants 2 messages Nov 8, 2010 – Nov 9, 2010 Hardware monitoring

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 hwmon: (adt7470) Return proper error code for adt7470_probe()

---
 drivers/hwmon/adt7470.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/hwmon/adt7470.c +3 -1
index 9e77571..87d92a5 100644
@@ -1286,8 +1286,10 @@ static int adt7470_probe(struct i2c_client *client,
 	init_completion(&data->auto_update_stop);
 	data->auto_update = kthread_run(adt7470_update_thread, client,
 					dev_name(data->hwmon_dev));
-	if (IS_ERR(data->auto_update))
+	if (IS_ERR(data->auto_update)) {
+		err = PTR_ERR(data->auto_update);
 		goto exit_unregister;
+	}
 
 	return 0;
 
Signature · 1 line
1.7.2