input: gt9xx: remove tp_register_fb
authorJianqun Xu <jay.xu@rock-chips.com>
Fri, 19 Feb 2016 00:31:22 +0000 (08:31 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 19 Feb 2016 03:22:15 +0000 (11:22 +0800)
Fix the suspend/resume bug.

Change-Id: Ia8a6275f3eed9f13af153138e225343486323afb
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
drivers/input/touchscreen/gt9xx/gt9xx.c

index 3cf920246466edea6c3c9a8e393e43c6278ce5f6..dfbe060ea07515b0ec0717d6193b6bd17be0b8ea 100755 (executable)
@@ -2102,7 +2102,7 @@ static s8 gtp_request_input_dev(struct goodix_ts_data *ts)
     
     ts->tp.tp_resume = goodix_ts_early_resume;
     ts->tp.tp_suspend = goodix_ts_early_suspend;
-    tp_register_fb(&ts->tp);
+/*    tp_register_fb(&ts->tp); */
 
 #if GTP_WITH_PEN
     gtp_pen_init(ts);
@@ -2760,11 +2760,11 @@ static int goodix_ts_probe(struct i2c_client *client, const struct i2c_device_id
 
 probe_init_error:
     printk("   <%s>_%d  prob error !!!!!!!!!!!!!!!\n", __func__, __LINE__);    
-    tp_unregister_fb(&ts->tp);
+    /* tp_unregister_fb(&ts->tp); */
     GTP_GPIO_FREE(ts->rst_pin);
     GTP_GPIO_FREE(ts->irq_pin);
 probe_init_error_requireio:
-    tp_unregister_fb(&ts->tp); 
+    /* tp_unregister_fb(&ts->tp); */
     kfree(ts);
     return ret;
 }
@@ -2782,7 +2782,7 @@ static int goodix_ts_remove(struct i2c_client *client)
 {
     struct goodix_ts_data *ts = i2c_get_clientdata(client);
     
-    tp_unregister_fb(&ts->tp);
+    /* tp_unregister_fb(&ts->tp); */
 
     GTP_DEBUG_FUNC();