diff options
| author | Aymeric Wibo <obiwac@FreeBSD.org> | 2026-04-01 11:54:57 +0000 |
|---|---|---|
| committer | Aymeric Wibo <obiwac@FreeBSD.org> | 2026-04-01 11:54:58 +0000 |
| commit | 0307db7744d4cfe0d610ebece226dd20fdcc4ed5 (patch) | |
| tree | 0d4aeb0c332800e5a83ebfa32f62597f49289509 /sys/dev | |
| parent | 0dbbed21a643f6c95bebe23008a332ff68adb203 (diff) | |
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/acpica/acpi_spmc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c index 206d3a843f53..0c2a5d9e96a9 100644 --- a/sys/dev/acpica/acpi_spmc.c +++ b/sys/dev/acpica/acpi_spmc.c @@ -190,6 +190,11 @@ acpi_spmc_probe(device_t dev) if (ACPI_ID_PROBE(device_get_parent(dev), dev, spmc_ids, &name) > 0) return (ENXIO); + if (device_get_unit(dev) > 0) { + device_printf(dev, "shouldn't have more than one SPMC"); + return (ENXIO); + } + handle = acpi_get_handle(dev); if (handle == NULL) return (ENXIO); |
