mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 06:41:39 +00:00
[POWERPC] via-pmu: remove LED sleep notifier
The generic LED code now makes sure that suspended devices don't blink, so we no longer need to do it ourselves. For the suspend to disk case, however, we need to make sure that we don't blink if the PMU sysdev was suspended before the LED device. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
0108d3fe3c
commit
f596575e81
3 changed files with 12 additions and 33 deletions
|
@ -225,4 +225,12 @@ extern unsigned int pmu_power_flags;
|
|||
/* Backlight */
|
||||
extern void pmu_backlight_init(void);
|
||||
|
||||
/* some code needs to know if the PMU was suspended for hibernation */
|
||||
#ifdef CONFIG_PM
|
||||
extern int pmu_sys_suspended;
|
||||
#else
|
||||
/* if power management is not configured it can't be suspended */
|
||||
#define pmu_sys_suspended 0
|
||||
#endif
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue