summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2007-07-07 17:54:33 +0000
committernjl <njl@FreeBSD.org>2007-07-07 17:54:33 +0000
commitee9b742ebbe10157a607fd524ad10764075648d8 (patch)
treed11cc7654eccb8814fa72de439ef33ae58d5c2bd /sys
parentcb5c34b947fbb993e5d960f51a98d7d4bd83a4ba (diff)
downloadFreeBSD-src-ee9b742ebbe10157a607fd524ad10764075648d8.zip
FreeBSD-src-ee9b742ebbe10157a607fd524ad10764075648d8.tar.gz
Now that we have a function that can be called from a cdevsw close()
entry point, use it. Approved by: re
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/acpica/acpi_machdep.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/i386/acpica/acpi_machdep.c b/sys/i386/acpica/acpi_machdep.c
index e94dc79..4010690 100644
--- a/sys/i386/acpica/acpi_machdep.c
+++ b/sys/i386/acpica/acpi_machdep.c
@@ -273,14 +273,6 @@ apm_create_clone(struct cdev *dev, struct acpi_softc *acpi_sc)
return (clone);
}
-/* XXX Kernel should be updated to allow calls to destroy_dev() in close(). */
-static void
-apm_destroy_clone(void *arg)
-{
-
- destroy_dev((struct cdev *)arg);
-}
-
static int
apmopen(struct cdev *dev, int flag, int fmt, d_thread_t *td)
{
@@ -318,7 +310,7 @@ apmclose(struct cdev *dev, int flag, int fmt, d_thread_t *td)
knlist_destroy(&clone->sel_read.si_note);
ACPI_UNLOCK(acpi);
free(clone, M_APMDEV);
- AcpiOsExecute(OSL_GPE_HANDLER, apm_destroy_clone, dev);
+ destroy_dev_sched(dev);
return (0);
}
OpenPOWER on IntegriCloud