diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-12-13 00:49:21 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-12-13 00:49:21 +0000 |
commit | 2de7bc76cbf9bd58b40cdd324f76fc18d53a7f26 (patch) | |
tree | 5e0c3f2be182b7cb5bdc543411029e20159e2283 | |
parent | 0e426715ca38a463b42b11fe608b47f73b366eb3 (diff) |
add a sxidog_activate() function so the kernel will link again
after the changes made in rev 1.5
-rw-r--r-- | sys/arch/armv7/sunxi/sxidog.c | 16 |
1 files changed, 15 insertions, 1 deletions
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 <drahn@openbsd.org> * @@ -111,6 +111,20 @@ sxidog_attach(struct device *parent, struct device *self, void *args) } 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) { struct sxidog_softc *sc = (struct sxidog_softc *)arg; |