diff options
| author | jruoho <jruoho@NetBSD.org> | 2010-08-24 14:53:45 +0000 |
|---|---|---|
| committer | jruoho <jruoho@NetBSD.org> | 2010-08-24 14:53:45 +0000 |
| commit | 22be5f8edad53fcedb213843ddfe7111d10e745a (patch) | |
| tree | 81baf486ab6a36cb6780d451626a46827739a968 /sys/dev | |
| parent | 0285d73f87332103b889683d352ef59e98c40a69 (diff) | |
Remove phony spl(9). XXX: This driver needs to be cleaned up.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpi/sony_acpi.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/acpi/sony_acpi.c b/sys/dev/acpi/sony_acpi.c index 0a5f4bd4fa1..beac54b3c3a 100644 --- a/sys/dev/acpi/sony_acpi.c +++ b/sys/dev/acpi/sony_acpi.c @@ -1,4 +1,4 @@ -/* $NetBSD: sony_acpi.c,v 1.18 2010/04/15 07:02:24 jruoho Exp $ */ +/* $NetBSD: sony_acpi.c,v 1.19 2010/08/24 14:53:45 jruoho Exp $ */ /*- * Copyright (c) 2005 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.18 2010/04/15 07:02:24 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sony_acpi.c,v 1.19 2010/08/24 14:53:45 jruoho Exp $"); #include <sys/param.h> #include <sys/sysctl.h> @@ -327,7 +327,6 @@ sony_acpi_notify_handler(ACPI_HANDLE hdl, uint32_t notify, void *opaque) struct sony_acpi_softc *sc = device_private(dv); ACPI_STATUS rv; ACPI_INTEGER arg; - int s; if (notify == SONY_NOTIFY_FnKeyEvent) { rv = sony_acpi_eval_set_integer(hdl, "SN07", 0x202, &arg); @@ -337,7 +336,6 @@ sony_acpi_notify_handler(ACPI_HANDLE hdl, uint32_t notify, void *opaque) notify = arg & 0xff; } - s = spltty(); switch (notify) { case SONY_NOTIFY_BrightnessDownPressed: sony_acpi_brightness_down(dv); @@ -373,11 +371,9 @@ sony_acpi_notify_handler(ACPI_HANDLE hdl, uint32_t notify, void *opaque) case SONY_NOTIFY_ZoomReleased: break; default: - aprint_debug_dev(dv, "unknown notify event 0x%x\n", - notify); + aprint_debug_dev(dv, "unknown notify event 0x%x\n", notify); break; } - splx(s); } static bool |
