diff options
author | takawata <takawata@FreeBSD.org> | 2005-05-19 09:13:26 +0000 |
---|---|---|
committer | takawata <takawata@FreeBSD.org> | 2005-05-19 09:13:26 +0000 |
commit | b51d8499fe80381c2d42f6a720e0bc4896063514 (patch) | |
tree | ffae79023e864c378402b5d237ea83ec6c6de625 | |
parent | 62b7d28467589faf0802ddb4e3d431b8bbf1f6f2 (diff) | |
download | FreeBSD-src-b51d8499fe80381c2d42f6a720e0bc4896063514.zip FreeBSD-src-b51d8499fe80381c2d42f6a720e0bc4896063514.tar.gz |
Use General definition for general notify.
-rw-r--r-- | sys/dev/acpica/acpi_acad.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c index 0b9bac3..693deb3 100644 --- a/sys/dev/acpica/acpi_acad.c +++ b/sys/dev/acpica/acpi_acad.c @@ -52,8 +52,6 @@ ACPI_MODULE_NAME("AC_ADAPTER") /* Number of times to retry initialization before giving up. */ #define ACPI_ACAD_RETRY_MAX 6 -#define ACPI_DEVICE_CHECK_PNP 0x00 -#define ACPI_DEVICE_CHECK_EXISTENCE 0x01 #define ACPI_POWERSOURCE_STAT_CHANGE 0x80 struct acpi_acad_softc { @@ -122,8 +120,8 @@ acpi_acad_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context) dev = (device_t)context; switch (notify) { - case ACPI_DEVICE_CHECK_PNP: - case ACPI_DEVICE_CHECK_EXISTENCE: + case ACPI_NOTIFY_BUS_CHECK: + case ACPI_NOTIFY_DEVICE_CHECK: case ACPI_POWERSOURCE_STAT_CHANGE: /* Temporarily. It is better to notify policy manager */ AcpiOsQueueForExecution(OSD_PRIORITY_LO, acpi_acad_get_status, context); |