summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/rohm_bu21023.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/rohm_bu21023.c')
-rw-r--r--drivers/input/touchscreen/rohm_bu21023.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/rohm_bu21023.c b/drivers/input/touchscreen/rohm_bu21023.c
index ba6024f93469..611156a2ef80 100644
--- a/drivers/input/touchscreen/rohm_bu21023.c
+++ b/drivers/input/touchscreen/rohm_bu21023.c
@@ -725,7 +725,7 @@ static int rohm_ts_load_firmware(struct i2c_client *client,
break;
error = -EIO;
- } while (++retry >= FIRMWARE_RETRY_MAX);
+ } while (++retry <= FIRMWARE_RETRY_MAX);
out:
error2 = i2c_smbus_write_byte_data(client, INT_MASK, INT_ALL);