From: 黄涛 Date: Fri, 29 Mar 2013 02:53:37 +0000 (+0800) Subject: ts: rk29_i2c_goodix: unregister early suspend when probe failed X-Git-Tag: firefly_0821_release~7312 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c0ac86ad944b0ba97b43d292d67b388bf74314a5;p=firefly-linux-kernel-4.4.55.git ts: rk29_i2c_goodix: unregister early suspend when probe failed --- diff --git a/drivers/input/touchscreen/rk29_i2c_goodix.c b/drivers/input/touchscreen/rk29_i2c_goodix.c index 2a2fde8585cd..4ad739b43d32 100755 --- 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 err_input_register_device_failed: +#ifdef CONFIG_HAS_EARLYSUSPEND + unregister_early_suspend(&ts->early_suspend); +#endif input_free_device(ts->input_dev); i2c_set_clientdata(client, NULL); kfree(ts);