aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpica/acpi_spmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
index c8e2cf4c3733..611a9a09a6eb 100644
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -785,8 +785,8 @@ acpi_spmc_get_constraints(struct acpi_spmc_softc *const sc)
for (size_t i = 0; i < sc->constraint_count; i++) {
constraint = &sc->constraints[i];
- status = acpi_GetHandleInScope(sc->handle,
- __DECONST(char *, constraint->name), &constraint->handle);
+ status = acpi_GetHandleInScope(sc->handle, constraint->name,
+ &constraint->handle);
if (ACPI_FAILURE(status)) {
if (VERBOSE())
device_printf(sc->dev,