OSDN Git Service

input: touchscreen: correct probe error path for ITE tech driver
authorShantanu Jain <shjain@codeaurora.org>
Mon, 12 Oct 2015 16:50:06 +0000 (22:20 +0530)
committerAbinaya P <abinayap@codeaurora.org>
Wed, 3 Aug 2016 06:49:37 +0000 (12:19 +0530)
commit3d4fb6fef8c6b37dafa7f1a0b74154d91d3ac194
tree3ac7d98867a4a214da47ad5284af884e7a4acfb1
parentaacc5edd8c07071fdaab95cd137ee608365c6379
input: touchscreen: correct probe error path for ITE tech driver

ITE tech touch driver dynamically detects the controller attached
to the device in its probe. And if the driver fails to identify
the controller, it exits the probe with the error code. But in the
probe error path, it doesn't retain the error code, replace it
with zero and registers the device instead of failing.
This change corrects the probe error path of ITE tech touch driver
and makes sure it returns the error code if it fails.

Change-Id: I8f193ee10076b6cf058b0a6940db54f71f70b758
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
drivers/input/touchscreen/it7258_ts_i2c.c