mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
power: main: Add conditional compilation for touch nodes
Add conditional compilation for touch event sysfs nodes. Otherwise, if CONFIG_PM_SLEEP is not defined, there could be compilation errors. Change-Id: I1ac7f284ec35eae2cfa076ef8e71c29ddc24817c Signed-off-by: Amar Singhal <asinghal@codeaurora.org> Signed-off-by: Anurag Singh <anursing@codeaurora.org>
This commit is contained in:
parent
d364a08bcc
commit
9801869142
1 changed files with 2 additions and 2 deletions
|
@ -607,8 +607,6 @@ power_attr(wake_unlock);
|
|||
#endif
|
||||
|
||||
static struct attribute *g[] = {
|
||||
&touch_event_attr.attr,
|
||||
&touch_event_timer_attr.attr,
|
||||
&state_attr.attr,
|
||||
#ifdef CONFIG_PM_TRACE
|
||||
&pm_trace_attr.attr,
|
||||
|
@ -624,6 +622,8 @@ static struct attribute *g[] = {
|
|||
&wake_lock_attr.attr,
|
||||
&wake_unlock_attr.attr,
|
||||
#endif
|
||||
&touch_event_attr.attr,
|
||||
&touch_event_timer_attr.attr,
|
||||
#ifdef CONFIG_PM_DEBUG
|
||||
&pm_test_attr.attr,
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue