Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7334b4c authored by Axel Lin's avatar Axel Lin Committed by Guenter Roeck
Browse files

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

parent f6614b7b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;