summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_button.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2002-02-23 05:26:45 +0000
committermsmith <msmith@FreeBSD.org>2002-02-23 05:26:45 +0000
commit6e083f357a1f5db3beacb74aac9a7140f5cf31f8 (patch)
tree4244c076ce4bcb63de2f6b6018e0ac28bc7e53ae /sys/dev/acpica/acpi_button.c
parent40fae72f5162695b2115a627fafc1d01a835d73a (diff)
downloadFreeBSD-src-6e083f357a1f5db3beacb74aac9a7140f5cf31f8.zip
FreeBSD-src-6e083f357a1f5db3beacb74aac9a7140f5cf31f8.tar.gz
Match namespace cleanup changes in ACPI CA 20020217 update.
Use ACPI_SUCCESS/ACPI_FAILURE consistently.
Diffstat (limited to 'sys/dev/acpica/acpi_button.c')
-rw-r--r--sys/dev/acpica/acpi_button.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c
index d1a047a..720eaa9 100644
--- a/sys/dev/acpica/acpi_button.c
+++ b/sys/dev/acpica/acpi_button.c
@@ -41,7 +41,7 @@
* Hooks for the ACPI CA debugging infrastructure
*/
#define _COMPONENT ACPI_BUTTON
-MODULE_NAME("BUTTON")
+ACPI_MODULE_NAME("BUTTON")
struct acpi_button_softc {
device_t button_dev;
@@ -103,14 +103,14 @@ acpi_button_attach(device_t dev)
struct acpi_button_softc *sc;
ACPI_STATUS status;
- FUNCTION_TRACE(__func__);
+ ACPI_FUNCTION_TRACE(__func__);
sc = device_get_softc(dev);
sc->button_dev = dev;
sc->button_handle = acpi_get_handle(dev);
- if ((status = AcpiInstallNotifyHandler(sc->button_handle, ACPI_DEVICE_NOTIFY,
- acpi_button_notify_handler, sc)) != AE_OK) {
+ if (ACPI_FAILURE(status = AcpiInstallNotifyHandler(sc->button_handle, ACPI_DEVICE_NOTIFY,
+ acpi_button_notify_handler, sc))) {
device_printf(sc->button_dev, "couldn't install Notify handler - %s\n", AcpiFormatException(status));
return_VALUE(ENXIO);
}
@@ -123,7 +123,7 @@ acpi_button_notify_pressed_for_sleep(void *arg)
struct acpi_button_softc *sc;
struct acpi_softc *acpi_sc;
- FUNCTION_TRACE(__func__);
+ ACPI_FUNCTION_TRACE(__func__);
sc = (struct acpi_button_softc *)arg;
acpi_sc = acpi_device_get_parent_softc(sc->button_dev);
@@ -154,7 +154,7 @@ acpi_button_notify_pressed_for_wakeup(void *arg)
struct acpi_button_softc *sc;
struct acpi_softc *acpi_sc;
- FUNCTION_TRACE(__func__);
+ ACPI_FUNCTION_TRACE(__func__);
sc = (struct acpi_button_softc *)arg;
acpi_sc = acpi_device_get_parent_softc(sc->button_dev);
@@ -188,7 +188,7 @@ acpi_button_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
{
struct acpi_button_softc *sc = (struct acpi_button_softc *)context;
- FUNCTION_TRACE_U32(__func__, notify);
+ ACPI_FUNCTION_TRACE_U32(__func__, notify);
switch (notify) {
case ACPI_NOTIFY_BUTTON_PRESSED_FOR_SLEEP:
OpenPOWER on IntegriCloud