input: touchscreen: gt1x: Don't add pm ops when enable early suspend
Fix underflow of vcc3v3_lcd0_n regulator enable count. Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> Change-Id: Ie5383504b29c3efa8f98df76d32feb5721ee22c2
This commit is contained in:
parent
2807756abc
commit
36be8862f9
1 changed files with 2 additions and 4 deletions
|
|
@ -730,9 +730,7 @@ static struct early_suspend gt1x_early_suspend = {
|
|||
.suspend = gt1x_ts_early_suspend,
|
||||
.resume = gt1x_ts_late_resume,
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
#elif defined(CONFIG_PM)
|
||||
/**
|
||||
* gt1x_ts_suspend - i2c suspend callback function.
|
||||
* @dev: i2c device.
|
||||
|
|
@ -805,7 +803,7 @@ static struct i2c_driver gt1x_ts_driver = {
|
|||
#ifdef GTP_CONFIG_OF
|
||||
.of_match_table = gt1x_match_table,
|
||||
#endif
|
||||
#if !defined(CONFIG_FB) && defined(CONFIG_PM)
|
||||
#if !defined(CONFIG_FB) && !defined(CONFIG_HAS_EARLYSUSPEND) && defined(CONFIG_PM)
|
||||
.pm = >1x_ts_pm_ops,
|
||||
#endif
|
||||
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue