From: lw@rock-chips.com Date: Fri, 27 Apr 2012 02:50:13 +0000 (+0800) Subject: rk30:async init touch screen X-Git-Tag: firefly_0821_release~9291 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=23993e84e0766114f83d31e6175897dd2b722671;p=firefly-linux-kernel-4.4.55.git rk30:async init touch screen --- diff --git a/drivers/input/touchscreen/rk29_i2c_goodix.c b/drivers/input/touchscreen/rk29_i2c_goodix.c index 6bd9bde71d7b..0dfa571d55d1 100755 --- a/drivers/input/touchscreen/rk29_i2c_goodix.c +++ b/drivers/input/touchscreen/rk29_i2c_goodix.c @@ -33,6 +33,7 @@ #include #include #include +#include #include "rk29_i2c_goodix.h" #include @@ -1664,12 +1665,17 @@ Description: return: Executive Outcomes. 0---succeed. ********************************************************/ -static int __devinit rk_ts_init(void) + +static void __init rk_ts_init_async(void *unused, async_cookie_t cookie) { - int ret ; - ret=i2c_add_driver(&rk_ts_driver); + i2c_add_driver(&rk_ts_driver); dbg_sys_init(); //for debug - return ret; +} + +static int __init rk_ts_init(void) +{ + async_schedule(rk_ts_init_async, NULL); + return 0; } /*******************************************************