From a9b11517bfdd0e4a81bb2ffe7be7adc147df71f3 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 9 Jul 2012 15:04:13 +0000 Subject: acpi_disable_onegpe() is not used; ok pirofti --- sys/dev/acpi/acpi.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 1f08bc49a81..0acaebb4eff 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.233 2012/05/24 19:59:22 kettenis Exp $ */ +/* $OpenBSD: acpi.c,v 1.234 2012/07/09 15:04:12 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert * Copyright (c) 2005 Jordan Hargrave @@ -142,7 +142,6 @@ int acpi_add_device(struct aml_node *node, void *arg); struct gpe_block *acpi_find_gpe(struct acpi_softc *, int); void acpi_enable_onegpe(struct acpi_softc *, int); -void acpi_disable_onegpe(struct acpi_softc *, int); int acpi_gpe(struct acpi_softc *, int, void *); void acpi_enable_rungpes(struct acpi_softc *); @@ -1635,22 +1634,6 @@ acpi_enable_onegpe(struct acpi_softc *sc, int gpe) splx(s); } -void -acpi_disable_onegpe(struct acpi_softc *sc, int gpe) -{ - uint8_t mask, en; - int s; - - /* Read enabled register */ - s = spltty(); - mask = (1L << (gpe & 7)); - en = acpi_read_pmreg(sc, ACPIREG_GPE_EN, gpe>>3); - dnprintf(50, "disabling GPE %.2x (current: %sabled) %.2x\n", - gpe, (en & mask) ? "en" : "dis", en); - acpi_write_pmreg(sc, ACPIREG_GPE_EN, gpe>>3, en & ~mask); - splx(s); -} - /* Clear all GPEs */ void acpi_disable_allgpes(struct acpi_softc *sc) -- cgit v1.2.3