summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/input/touchscreen/mms128.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/input/touchscreen/mms128.c b/drivers/input/touchscreen/mms128.c
index 64236d90351..7bcb3ba62e8 100644
--- a/drivers/input/touchscreen/mms128.c
+++ b/drivers/input/touchscreen/mms128.c
@@ -1278,13 +1278,8 @@ static int mms_ts_fw_load(struct mms_ts_info *info)
ret = mms_flash_fw(info->fw_data, info, COMPARE_UPDATE);
} while (ret && --retries);
- if (!retries) {
+ if (!retries)
dev_err(&info->client->dev, "failed to flash firmware after retires\n");
- } else {
- /* Runtime config setting*/
- mms_config_get(info, REQ_FW);
- mms_config_set(info);
- }
return ret;
}
@@ -1475,6 +1470,8 @@ static int mms_ts_input_open(struct input_dev *dev)
return 0;
}
+ mms_config_get(info, REQ_FW);
+
info->resume_done = false;
mms_ts_power(info, true);
schedule_delayed_work(&info->work_config_set,