* [PATCH] hwmon: (adt7470) Return proper error code for adt7470_probe()
@ 2010-11-08 5:11 Axel Lin
2010-11-09 2:43 ` [lm-sensors] " Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2010-11-08 5:11 UTC (permalink / raw)
To: linux-kernel; +Cc: Jean Delvare, Darrick J. Wong, lm-sensors
Signed-off-by: Axel Lin <axel.lin@gmail.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [lm-sensors] [PATCH] hwmon: (adt7470) Return proper error code for adt7470_probe()
2010-11-08 5:11 [PATCH] hwmon: (adt7470) Return proper error code for adt7470_probe() Axel Lin
@ 2010-11-09 2:43 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2010-11-09 2:43 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, lm-sensors
On Mon, Nov 08, 2010 at 12:11:33AM -0500, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
Applied.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-09 2:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-08 5:11 [PATCH] hwmon: (adt7470) Return proper error code for adt7470_probe() Axel Lin
2010-11-09 2:43 ` [lm-sensors] " Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).