mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
input: touchscreen: gt1x: fix the warning when GTP init failed
resolve the warning log below: [ 8.207933][ T9] ------------[ cut here ]------------ [ 8.207956][ T9] WARNING: CPU: 4 PID: 9 at drivers/regulator/core.c:2151 _regulator_put+0x10c/0x11c [ 8.207965][ T9] Modules linked in: [ 8.207984][ T9] CPU: 4 PID: 9 Comm: kworker/u16:1 Not tainted 5.10.43 #628 [ 8.207993][ T9] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT) [ 8.208009][ T9] Workqueue: events_unbound async_run_entry_fn [ 8.208024][ T9] pstate: 80800009 (Nzcv daif -PAN +UAO -TCO BTYPE=--) [ 8.208037][ T9] pc : _regulator_put+0x10c/0x11c [ 8.208049][ T9] lr : regulator_put+0x30/0x4c [ 8.208058][ T9] sp : ffffffc0120b3b20 [ 8.208067][ T9] x29: ffffffc0120b3b20 x28: ffffffc01091d10c [ 8.208082][ T9] x27: ffffffc01091d100 x26: ffffff8402db2320 [ 8.208095][ T9] x25: ffffff8404604100 x24: ffffff8402db2320 [ 8.208107][ T9] x23: ffffff8404604100 x22: ffffffc0120b3b78 [ 8.208120][ T9] x21: ffffff8404604300 x20: ffffffc011da4550 [ 8.208133][ T9] x19: ffffff8404604400 x18: ffffffc012065070 [ 8.208145][ T9] x17: 0000000000000000 x16: 00000000000000d8 [ 8.208158][ T9] x15: 0000000000000004 x14: 0000000000003fff [ 8.208171][ T9] x13: ffffffc011b8c968 x12: 0000000000000003 [ 8.208183][ T9] x11: 00000000ffffbfff x10: dead000000000100 [ 8.208196][ T9] x9 : 0000000000000000 x8 : 0000000000000001 [ 8.208208][ T9] x7 : 47205d3436353a65 x6 : ffffffc011d93448 [ 8.208220][ T9] x5 : ffffffffffffffff x4 : 0000000000000000 [ 8.208232][ T9] x3 : 0000000000000000 x2 : ffffff840034a500 [ 8.208245][ T9] x1 : 0000000000000000 x0 : ffffff8404604400 Signed-off-by: shengfei Xu <xsf@rock-chips.com> Change-Id: I07e87f6105b71aa9ed571173e4a9a33c1c91bd65
This commit is contained in:
@@ -2398,6 +2398,8 @@ s32 gt1x_init(void)
|
||||
#if GTP_WITH_STYLUS
|
||||
gt1x_pen_init();
|
||||
#endif
|
||||
if (ret != 0)
|
||||
gt1x_power_switch(SWITCH_OFF);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user