From: Axel Lin Date: Mon, 8 Nov 2010 05:11:33 +0000 (-0500) Subject: hwmon: (adt7470) Return proper error code for adt7470_probe() X-Git-Tag: Ubuntu-5.0.0-8.9~21080^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f7334b4ca9108a86b64fbd0f435f44b2113ee053;p=mirror_ubuntu-disco-kernel.git hwmon: (adt7470) Return proper error code for adt7470_probe() Signed-off-by: Axel Lin Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/adt7470.c b/drivers/hwmon/adt7470.c index 9e775717abb7..87d92a56a939 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;