From d3d91e80cd29534d7de1ca76a7cb38f7d241c659 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Fri, 24 May 2013 14:21:58 +0200 Subject: [PATCH] 0017-edt-mutex-unlock-bugfix =================================================================== --- drivers/input/touchscreen/edt-ft5x06.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 632e6d45bac2..6d4a32912f73 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -583,9 +583,10 @@ static int edt_ft5x06_i2c_ts_probe(struct i2c_client *client, tsdata->factory_mode = 0; - if (edt_ft5x06_ts_readwrite(client, 1, "\xbb", 22, rdbuf) < 0) { + error = edt_ft5x06_ts_readwrite(client, 1, "\xbb", 22, rdbuf); + if (error < 0) { dev_err(&client->dev, "probing failed\n"); - error = -ENODEV; + mutex_unlock(&tsdata->mutex); goto err_free_irq_pin; } -- 2.39.5