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

Commit 59f1d772 authored by Venkata Prahlad Valluru's avatar Venkata Prahlad Valluru Committed by Gerrit - the friendly Code Review server
Browse files

input: touchscreen: Fix error code in Atmel driver



Set the error code to be returned in case of failure.

Change-Id: I2cd818b21decb659de74fde1ac5c667d8606420e
Signed-off-by: default avatarVenkata Prahlad Valluru <vvalluru@codeaurora.org>
parent 6feaa135
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4025,6 +4025,7 @@ static int mxt_probe(struct i2c_client *client,
		len = strlen(data->pdata->cfg_name);
		if (len > MXT_NAME_MAX_LEN - 1) {
			dev_err(&client->dev, "Invalid config name\n");
			error = -EINVAL;
			goto err_destroy_mutex;
		}