From 1fb1e79dd57335e77cbf98874799b51158290880 Mon Sep 17 00:00:00 2001 From: dyoung Date: Tue, 7 Apr 2009 17:59:18 +0000 Subject: [PATCH] During shutdown, detach attimer at acpi. --- sys/dev/acpi/attimer_acpi.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/dev/acpi/attimer_acpi.c b/sys/dev/acpi/attimer_acpi.c index c762bd4069b6..2e85e33e98a6 100644 --- a/sys/dev/acpi/attimer_acpi.c +++ b/sys/dev/acpi/attimer_acpi.c @@ -1,4 +1,4 @@ -/* $NetBSD: attimer_acpi.c,v 1.12 2009/02/17 12:46:01 jmcneill Exp $ */ +/* $NetBSD: attimer_acpi.c,v 1.13 2009/04/07 17:59:18 dyoung Exp $ */ /* * Copyright (c) 2005 The NetBSD Foundation, Inc. @@ -59,7 +59,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: attimer_acpi.c,v 1.12 2009/02/17 12:46:01 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: attimer_acpi.c,v 1.13 2009/04/07 17:59:18 dyoung Exp $"); #include #include @@ -79,8 +79,9 @@ __KERNEL_RCSID(0, "$NetBSD: attimer_acpi.c,v 1.12 2009/02/17 12:46:01 jmcneill E static int attimer_acpi_match(device_t, cfdata_t, void *); static void attimer_acpi_attach(device_t, device_t, void *); -CFATTACH_DECL_NEW(attimer_acpi, sizeof(struct attimer_softc), - attimer_acpi_match, attimer_acpi_attach, attimer_detach, NULL); +CFATTACH_DECL3_NEW(attimer_acpi, sizeof(struct attimer_softc), + attimer_acpi_match, attimer_acpi_attach, attimer_detach, NULL, NULL, NULL, + DVF_DETACH_SHUTDOWN); /* * Supported device IDs