Pass correct argument to callback, botched up in the last commit.
This commit is contained in:
parent
d072fd0fb9
commit
65eda08509
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: acpi_button.c,v 1.23 2007/10/18 23:54:54 joerg Exp $ */
|
/* $NetBSD: acpi_button.c,v 1.24 2007/10/24 07:05:35 joerg Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2001, 2003 Wasabi Systems, Inc.
|
* Copyright 2001, 2003 Wasabi Systems, Inc.
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: acpi_button.c,v 1.23 2007/10/18 23:54:54 joerg Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: acpi_button.c,v 1.24 2007/10/24 07:05:35 joerg Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -179,7 +179,6 @@ static void
|
||||||
acpibut_notify_handler(ACPI_HANDLE handle, UINT32 notify, void *context)
|
acpibut_notify_handler(ACPI_HANDLE handle, UINT32 notify, void *context)
|
||||||
{
|
{
|
||||||
device_t dv = context;
|
device_t dv = context;
|
||||||
struct acpibut_softc *sc = device_private(dv);
|
|
||||||
int rv;
|
int rv;
|
||||||
|
|
||||||
switch (notify) {
|
switch (notify) {
|
||||||
|
@ -191,7 +190,7 @@ acpibut_notify_handler(ACPI_HANDLE handle, UINT32 notify, void *context)
|
||||||
aprint_debug_dev(dv, "received ButtonPressed message\n");
|
aprint_debug_dev(dv, "received ButtonPressed message\n");
|
||||||
#endif
|
#endif
|
||||||
rv = AcpiOsQueueForExecution(OSD_PRIORITY_LO,
|
rv = AcpiOsQueueForExecution(OSD_PRIORITY_LO,
|
||||||
acpibut_pressed_event, sc);
|
acpibut_pressed_event, dv);
|
||||||
if (ACPI_FAILURE(rv))
|
if (ACPI_FAILURE(rv))
|
||||||
aprint_error_dev(dv,
|
aprint_error_dev(dv,
|
||||||
"WARNING: unable to queue button pressed callback: %s\n",
|
"WARNING: unable to queue button pressed callback: %s\n",
|
||||||
|
|
Loading…
Reference in New Issue