From be897484b30714b7f70a48d8491b97bcfcda085b Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 13 Dec 2014 00:49:20 +0000 Subject: [PATCH] add a sxidog_activate() function so the kernel will link again after the changes made in rev 1.5 --- sys/arch/armv7/sunxi/sxidog.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sys/arch/armv7/sunxi/sxidog.c b/sys/arch/armv7/sunxi/sxidog.c index 66a359f9cf5..6212e5817fc 100644 --- a/sys/arch/armv7/sunxi/sxidog.c +++ b/sys/arch/armv7/sunxi/sxidog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxidog.c,v 1.5 2014/12/10 12:27:56 mikeb Exp $ */ +/* $OpenBSD: sxidog.c,v 1.6 2014/12/13 00:49:20 jsg Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn * @@ -110,6 +110,20 @@ sxidog_attach(struct device *parent, struct device *self, void *args) printf("\n"); } +int +sxidog_activate(struct device *self, int act) +{ + switch (act) { + case DVACT_POWERDOWN: +#ifndef SMALL_KERNEL + wdog_shutdown(self); +#endif + break; + } + + return (0); +} + int sxidog_callback(void *arg, int period) { -- 2.20.1