From: jsg Date: Sat, 13 Dec 2014 00:49:20 +0000 (+0000) Subject: add a sxidog_activate() function so the kernel will link again X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=be897484b30714b7f70a48d8491b97bcfcda085b;p=openbsd add a sxidog_activate() function so the kernel will link again after the changes made in rev 1.5 --- 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) {