phonepad:fix touch screen driver bug

This commit is contained in:
lw
2012-08-01 20:07:50 +08:00
parent 78f5f645e4
commit db12056124
2 changed files with 3 additions and 3 deletions

View File

@@ -227,6 +227,7 @@ CONFIG_INPUT_KEYRESET=y
CONFIG_INPUT_JOYSTICK=y
CONFIG_INPUT_TABLET=y
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_GT82X_IIC=y
CONFIG_INPUT_MISC=y
CONFIG_INPUT_KEYCHORD=y
CONFIG_INPUT_UINPUT=y

View File

@@ -804,7 +804,6 @@ static s32 goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id
//Test I2C connection.
// GTDEBUG_MSG("GT82X++++++ Testing I2C connection...\n");
for(retry = 0;retry < 3; retry++)
while(1) //For GTDEBUG use!
{
ret = i2c_pre_cmd(ts);
if (ret > 0)
@@ -815,7 +814,7 @@ static s32 goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id
{
dev_err(&client->dev, "Warnning: I2C communication might be ERROR!\n");
GTDEBUG_MSG("I2C test failed. I2C addr:%x\n", client->addr);
goodix_ts_remove(ts->client); kfree(ts);
goodix_ts_remove(ts->client);
return -1;
}
// printk("gt82x---777777777777777\n");
@@ -832,7 +831,7 @@ static s32 goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id
{
ts->bad_data=1;
GTDEBUG_MSG("Initialize failed!\n");
goodix_ts_remove(ts->client); kfree(ts);
goodix_ts_remove(ts->client);
return -1;
}
//Enable interrupt