summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2001-09-29 05:39:14 +0000
committerthorpej <thorpej@NetBSD.org>2001-09-29 05:39:14 +0000
commit84b2da1b5c5af36f9fbb3f9c5b67afe60a92ed91 (patch)
treedbd0b55d3d0d7abb2b6bf5df1cb1bcdebd18db3e /sys/dev
parent4ce1f116cf29bd4a152f2f3847ae7ae27b48e21a (diff)
Don't install a single system notify handler.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpi.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index b4f7d674543..4a962e8a42b 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi.c,v 1.2 2001/09/29 05:34:00 thorpej Exp $ */
+/* $NetBSD: acpi.c,v 1.3 2001/09/29 05:39:14 thorpej Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -89,8 +89,6 @@ ACPI_STATUS acpi_disable(struct acpi_softc *sc);
void acpi_build_tree(struct acpi_softc *);
ACPI_STATUS acpi_make_devnode(ACPI_HANDLE, UINT32, void *, void **);
-void acpi_system_notify_handler(ACPI_HANDLE, UINT32, void *);
-
void acpi_enable_fixed_events(struct acpi_softc *);
/*
@@ -254,15 +252,6 @@ acpi_attach(struct device *parent, struct device *self, void *aux)
sc->sc_sleepstate = ACPI_STATE_S0;
/*
- * We want to install a single system notify handler.
- */
- rv = AcpiInstallNotifyHandler(ACPI_ROOT_OBJECT, ACPI_SYSTEM_NOTIFY,
- acpi_system_notify_handler, sc);
- if (rv != AE_OK)
- printf("%s: WARNING: unable to install system notify "
- "handler: %d\n", sc->sc_dev.dv_xname, rv);
-
- /*
* Check for fixed-hardware features.
*/
acpi_enable_fixed_events(sc);
@@ -574,21 +563,6 @@ acpi_fixed_sleep_button_handler(void *context)
}
/*****************************************************************************
- * ACPI system notification handlers
- *****************************************************************************/
-
-void
-acpi_system_notify_handler(ACPI_HANDLE handle, UINT32 notify, void *context)
-{
- struct acpi_softc *sc = context;
-
- /* XXX XXX XXX */
-
- printf("%s: received system notify message 0x%x for handle %p\n",
- sc->sc_dev.dv_xname, notify, handle);
-}
-
-/*****************************************************************************
* ACPI utility routines.
*****************************************************************************/