projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5333612
)
ts: rk29_i2c_goodix: unregister early suspend when probe failed
author
黄涛
<huangtao@rock-chips.com>
Fri, 29 Mar 2013 02:53:37 +0000
(10:53 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Fri, 29 Mar 2013 02:54:40 +0000
(10:54 +0800)
drivers/input/touchscreen/rk29_i2c_goodix.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/rk29_i2c_goodix.c
b/drivers/input/touchscreen/rk29_i2c_goodix.c
index 2a2fde8585cd3ed6ccc85492c40b7ce57021fe1a..4ad739b43d32275a258465aebb58c8526605e323 100755
(executable)
--- a/
drivers/input/touchscreen/rk29_i2c_goodix.c
+++ b/
drivers/input/touchscreen/rk29_i2c_goodix.c
@@
-855,6
+855,9
@@
static int rk_ts_probe(struct i2c_client *client, const struct i2c_device_id *id
\r
\r
err_input_register_device_failed:
\r
+#ifdef CONFIG_HAS_EARLYSUSPEND
\r
+ unregister_early_suspend(&ts->early_suspend);
\r
+#endif
\r
input_free_device(ts->input_dev);
\r
i2c_set_clientdata(client, NULL);
\r
kfree(ts);
\r