diff --git a/sys/dev/acpica/acpi_ged.c b/sys/dev/acpica/acpi_ged.c index 9459ccc3525b..8ee56c8b0335 100644 --- a/sys/dev/acpica/acpi_ged.c +++ b/sys/dev/acpica/acpi_ged.c @@ -198,7 +198,7 @@ acpi_ged_attach(device_t dev) } } #else - rawirq = rman_get_start(sc->evt[i].r); + rawirq = rman_get_start(sc->evts[i].r); trig = INTR_TRIGGER_LEVEL; if (ACPI_SUCCESS(acpi_lookup_irq_resource (dev, sc->evts[i].rid, diff --git a/sys/modules/acpi/acpi_ged/Makefile b/sys/modules/acpi/acpi_ged/Makefile index a937249357f4..87dd53b88b2b 100644 --- a/sys/modules/acpi/acpi_ged/Makefile +++ b/sys/modules/acpi/acpi_ged/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ .PATH: ${SRCTOP}/sys/dev/acpica -.if ${TARGET_ARCH} == aarch64 +.if ${MACHINE_CPUARCH} == "aarch64" CFLAGS += -DINTRNG .endif KMOD= acpi_ged