summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi_support/acpi_ibm.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-12-13 03:22:11 +0000
committerscottl <scottl@FreeBSD.org>2004-12-13 03:22:11 +0000
commit1048e6f4a67f2cbee222c65f6a6131ef6bc22586 (patch)
tree99d27c4d3912e7df1a8351ab9c8ea7fdf6e0d7e5 /sys/dev/acpi_support/acpi_ibm.c
parent532abd191c9bc0c73b816d6a61b5a8e964f11a66 (diff)
downloadFreeBSD-src-1048e6f4a67f2cbee222c65f6a6131ef6bc22586.zip
FreeBSD-src-1048e6f4a67f2cbee222c65f6a6131ef6bc22586.tar.gz
Allow the acpi_ibm module to be built with ACPI_DEBUG.
Diffstat (limited to 'sys/dev/acpi_support/acpi_ibm.c')
-rw-r--r--sys/dev/acpi_support/acpi_ibm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/acpi_support/acpi_ibm.c b/sys/dev/acpi_support/acpi_ibm.c
index 97e5f30..e679efb 100644
--- a/sys/dev/acpi_support/acpi_ibm.c
+++ b/sys/dev/acpi_support/acpi_ibm.c
@@ -38,6 +38,9 @@
#include <sys/sysctl.h>
#include <machine/clock.h>
+#define _COMPONENT ACPI_IBM
+ACPI_MODULE_NAME("IBM")
+
#define IBM_RTC_MISCKEY 0x65
#define IBM_RTC_BRIGHTNESS 0x6c
#define IBM_RTC_MASK_BRI 0x7
@@ -252,6 +255,8 @@ fail:
static int
acpi_ibm_detach(device_t dev)
{
+ ACPI_FUNCTION_TRACE((char *)(uintptr_t) __func__);
+
struct acpi_ibm_softc *sc = device_get_softc(dev);
acpi_SetInteger(acpi_get_handle(dev), IBM_NAME_ENABLE, 0);
acpi_ibm_enable_mask(dev, sc->ibm_initialmask);
OpenPOWER on IntegriCloud