acpi_ged: fix build, as module and non INTRNG case.

Reviewed-by: cy

Differential Revision: https://reviews.freebsd.org/D37104
This commit is contained in:
Takanori Watanabe 2022-10-24 23:19:12 +09:00
parent 7322a6bcac
commit 9cf5db6369
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -1,7 +1,7 @@
# $FreeBSD$
.PATH: ${SRCTOP}/sys/dev/acpica
.if ${TARGET_ARCH} == aarch64
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS += -DINTRNG
.endif
KMOD= acpi_ged