[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1289193093.682.1.camel@mola>
Date: Mon, 08 Nov 2010 13:11:33 +0800
From: Axel Lin <axel.lin@...il.com>
To: linux-kernel <linux-kernel@...r.kernel.org>
Cc: Jean Delvare <khali@...ux-fr.org>,
"Darrick J. Wong" <djwong@...ibm.com>, lm-sensors@...sensors.org
Subject: [PATCH] hwmon: (adt7470) Return proper error code for
adt7470_probe()
Signed-off-by: Axel Lin <axel.lin@...il.com>
---
drivers/hwmon/adt7470.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/hwmon/adt7470.c b/drivers/hwmon/adt7470.c
index 9e77571..87d92a5 100644
--- a/drivers/hwmon/adt7470.c
+++ b/drivers/hwmon/adt7470.c
@@ -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;
--
1.7.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists