#include <linux/delay.h>
#include <linux/io.h>
#include <linux/notifier.h>
#include <linux/mfd/syscon.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#include <linux/regmap.h>
struct syscon_reboot_context { … };
static int syscon_restart_handle(struct notifier_block *this,
unsigned long mode, void *cmd)
{ … }
static int syscon_reboot_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id syscon_reboot_of_match[] = …;
static struct platform_driver syscon_reboot_driver = …;
builtin_platform_driver(…) …;