diff options
| author | Venkata Prahlad Valluru <vvalluru@codeaurora.org> | 2018-03-13 17:08:29 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-03-13 20:53:40 -0700 |
| commit | 59f1d772d06e023b5464ddeca9f5076e94d90f72 (patch) | |
| tree | a67a76274c244dbf8ab8de07b04d5f0b3a30c790 | |
| parent | 6feaa135ad5d137f69cd624e17dcd8c809379a29 (diff) | |
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: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
| -rw-r--r-- | drivers/input/touchscreen/atmel_maxtouch_ts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/atmel_maxtouch_ts.c b/drivers/input/touchscreen/atmel_maxtouch_ts.c index 9aa57c176d97..b30840e17445 100644 --- a/drivers/input/touchscreen/atmel_maxtouch_ts.c +++ b/drivers/input/touchscreen/atmel_maxtouch_ts.c @@ -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; } |
