xref: /openbmc/linux/arch/riscv/kernel/sbi.c (revision b9890054)
1 // SPDX-License-Identifier: GPL-2.0-only
2 
3 #include <linux/init.h>
4 #include <linux/pm.h>
5 #include <asm/sbi.h>
6 
7 static void sbi_power_off(void)
8 {
9 	sbi_shutdown();
10 }
11 
12 static int __init sbi_init(void)
13 {
14 	pm_power_off = sbi_power_off;
15 	return 0;
16 }
17 early_initcall(sbi_init);
18