summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-12-20 17:04:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-12-20 17:04:01 +0000
commit8166b93d853792599602e374b783a08ae8bf5988 (patch)
tree6f5e0a1f67df4b8bf6b82352f1a323381cd208cc /sys/dev/acpi
parentf1d66a4306798ec857ad72d1921a81f3ecfebd07 (diff)
acpi_unmap_pmregs() is not used, ok marco
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpi.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 78f5876a556..3dd681b185b 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.68 2006/12/19 04:09:11 deraadt Exp $ */
+/* $OpenBSD: acpi.c,v 1.69 2006/12/20 17:04:00 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -58,7 +58,6 @@ int acpi_submatch(struct device *, void *, void *);
int acpi_print(void *, const char *);
void acpi_map_pmregs(struct acpi_softc *);
-void acpi_unmap_pmregs(struct acpi_softc *);
void acpi_foundpss(struct aml_node *, void *);
void acpi_foundhid(struct aml_node *, void *);
@@ -354,19 +353,6 @@ acpi_map_pmregs(struct acpi_softc *sc)
}
}
-void
-acpi_unmap_pmregs(struct acpi_softc *sc)
-{
- int idx;
-
- for (idx = 0; idx < ACPIREG_MAXREG; idx++) {
- if (sc->sc_pmregs[idx].size) {
- bus_space_unmap(sc->sc_iot, sc->sc_pmregs[idx].ioh,
- sc->sc_pmregs[idx].size);
- }
- }
-}
-
/* Read from power management register */
int
acpi_read_pmreg(struct acpi_softc *sc, int reg, int offset)