Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>

authored by

Axel Lin and committed by
Guenter Roeck
f7334b4c f6614b7b

+3 -1
+3 -1
drivers/hwmon/adt7470.c
··· 1286 1286 init_completion(&data->auto_update_stop); 1287 1287 data->auto_update = kthread_run(adt7470_update_thread, client, 1288 1288 dev_name(data->hwmon_dev)); 1289 - if (IS_ERR(data->auto_update)) 1289 + if (IS_ERR(data->auto_update)) { 1290 + err = PTR_ERR(data->auto_update); 1290 1291 goto exit_unregister; 1292 + } 1291 1293 1292 1294 return 0; 1293 1295