aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/via-pmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/macintosh/via-pmu.c')
-rw-r--r--drivers/macintosh/via-pmu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c
index 2a355ae59562..1ab4f16c08b9 100644
--- a/drivers/macintosh/via-pmu.c
+++ b/drivers/macintosh/via-pmu.c
@@ -69,6 +69,8 @@
69#include <asm/open_pic.h> 69#include <asm/open_pic.h>
70#endif 70#endif
71 71
72#include "via-pmu-event.h"
73
72/* Some compile options */ 74/* Some compile options */
73#undef SUSPEND_USES_PMU 75#undef SUSPEND_USES_PMU
74#define DEBUG_SLEEP 76#define DEBUG_SLEEP
@@ -1427,6 +1429,12 @@ next:
1427 if (pmu_battery_count) 1429 if (pmu_battery_count)
1428 query_battery_state(); 1430 query_battery_state();
1429 pmu_pass_intr(data, len); 1431 pmu_pass_intr(data, len);
1432 /* len == 6 is probably a bad check. But how do I
1433 * know what PMU versions send what events here? */
1434 if (len == 6) {
1435 via_pmu_event(PMU_EVT_POWER, !!(data[1]&8));
1436 via_pmu_event(PMU_EVT_LID, data[1]&1);
1437 }
1430 } else { 1438 } else {
1431 pmu_pass_intr(data, len); 1439 pmu_pass_intr(data, len);
1432 } 1440 }