diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-09-19 17:34:06 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-09-19 17:34:06 +0000 |
commit | 775e8666c841148b92123729fad9aa2c3af615c6 (patch) | |
tree | d79516ed53c17d7aa58c47002a68313618042104 /sys/arch/socppc | |
parent | 2671423f6875164b2f6e174c5177bd7ddc6c80e4 (diff) |
Use config_suspend_all(9).
Diffstat (limited to 'sys/arch/socppc')
-rw-r--r-- | sys/arch/socppc/socppc/machdep.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/socppc/socppc/machdep.c b/sys/arch/socppc/socppc/machdep.c index 9d348064b59..dbf893adffc 100644 --- a/sys/arch/socppc/socppc/machdep.c +++ b/sys/arch/socppc/socppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.56 2014/09/06 10:45:29 mpi Exp $ */ +/* $OpenBSD: machdep.c,v 1.57 2014/09/19 17:34:05 kettenis Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -1032,7 +1032,6 @@ __dead void boot(int howto) { static int syncing; - struct device *mainbus; if (cold) { if ((howto & RB_USERREQ) == 0) @@ -1062,9 +1061,7 @@ boot(int howto) haltsys: doshutdownhooks(); - mainbus = device_mainbus(); - if (mainbus != NULL) - config_suspend(mainbus, DVACT_POWERDOWN); + config_suspend_all(DVACT_POWERDOWN); if ((howto & RB_HALT) != 0) { if ((howto & RB_POWERDOWN) != 0) { |