diff options
author | Geert Uytterhoeven <[email protected]> | 2017-07-05 14:08:35 +0200 |
---|---|---|
committer | John Stultz <[email protected]> | 2017-08-17 12:15:10 -0700 |
commit | 47b4a457e4cc816b3fdd2ee55c65fda8ea6de051 (patch) | |
tree | fa89b4e29c1f1a821f48244bdde9972d0ced5276 /drivers/clocksource/timer-imx-tpm.c | |
parent | a529bea8fa6b6dded6179c72d3385e0f7d0a4fde (diff) |
alarmtimer: Fix unavailable wake-up source in sysfs
Currently the alarmtimer registers a wake-up source unconditionally,
regardless of the system having a (wake-up capable) RTC or not.
Hence the alarmtimer will always show up in
/sys/kernel/debug/wakeup_sources, even if it is not available, and thus
cannot be a wake-up source.
To fix this, postpone registration until a wake-up capable RTC device is
added.
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Miroslav Lichvar <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Stephen Boyd <[email protected]>
Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Diffstat (limited to 'drivers/clocksource/timer-imx-tpm.c')
0 files changed, 0 insertions, 0 deletions