mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user