summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/board/poweroff.c
blob: 6b5a6dff15f99882f39585e6203c56a1c660c605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <common.h>
#include <init.h>
#include <poweroff.h>
#include <mach/linux.h>

static void sandbox_poweroff(struct poweroff_handler *poweroff)
{
	linux_exit();
}

static int poweroff_register_feature(void)
{
	poweroff_handler_register_fn(sandbox_poweroff);

	return 0;
}
coredevice_initcall(poweroff_register_feature);