Lines Matching +full:reboot +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <linux/reboot.h>
19 #include <asm/proc-fns.h>
25 unsigned long mode, void *cmd) in hisi_restart_handler() argument
42 struct device_node *np = pdev->dev.of_node; in hisi_reboot_probe()
48 return -ENODEV; in hisi_reboot_probe()
51 if (of_property_read_u32(np, "reboot-offset", &reboot_offset) < 0) { in hisi_reboot_probe()
52 pr_err("failed to find reboot-offset property\n"); in hisi_reboot_probe()
54 return -EINVAL; in hisi_reboot_probe()
59 dev_err(&pdev->dev, "cannot register restart handler (err=%d)\n", in hisi_reboot_probe()
75 .name = "hisi-reboot",