summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index 91b09aa555..286d7e41d6 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -31,6 +31,7 @@
31#include "button.h" 31#include "button.h"
32#include "ata.h" 32#include "ata.h"
33#include "mpeg.h" 33#include "mpeg.h"
34#include "mp3_playback.h"
34#include "usb.h" 35#include "usb.h"
35#include "powermgmt.h" 36#include "powermgmt.h"
36#include "backlight.h" 37#include "backlight.h"
@@ -875,6 +876,7 @@ void powermgmt_init(void)
875#endif /* SIMULATOR */ 876#endif /* SIMULATOR */
876 877
877void shutdown_hw(void) { 878void shutdown_hw(void) {
879#ifndef SIMULATOR
878 mpeg_stop(); 880 mpeg_stop();
879 ata_flush(); 881 ata_flush();
880 ata_spindown(1); 882 ata_spindown(1);
@@ -888,4 +890,5 @@ void shutdown_hw(void) {
888 lcd_set_contrast(0); 890 lcd_set_contrast(0);
889#endif 891#endif
890 power_off(); 892 power_off();
893#endif
891} 894}