summaryrefslogtreecommitdiff
path: root/sys/dev/uart/uart_cpu_arm64.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/uart/uart_cpu_arm64.c')
-rw-r--r--sys/dev/uart/uart_cpu_arm64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/uart/uart_cpu_arm64.c b/sys/dev/uart/uart_cpu_arm64.c
index 56a88f73b2bf6..5a323a38ac4ea 100644
--- a/sys/dev/uart/uart_cpu_arm64.c
+++ b/sys/dev/uart/uart_cpu_arm64.c
@@ -88,16 +88,16 @@ uart_cpu_acpi_scan(uint8_t interface_type)
SET_FOREACH(cd, uart_acpi_class_and_device_set) {
curcd = *cd;
- for (i = 0; curcd[i].hid != NULL; i++) {
- if (curcd[i].port_subtype == interface_type)
+ for (i = 0; curcd[i].cd_hid != NULL; i++) {
+ if (curcd[i].cd_port_subtype == interface_type)
return (&curcd[i]);
}
}
SET_FOREACH(cd, uart_acpi_class_set) {
curcd = *cd;
- for (i = 0; curcd[i].hid != NULL; i++) {
- if (curcd[i].port_subtype == interface_type)
+ for (i = 0; curcd[i].cd_hid != NULL; i++) {
+ if (curcd[i].cd_port_subtype == interface_type)
return (&curcd[i]);
}
}
@@ -147,7 +147,7 @@ uart_cpu_acpi_probe(struct uart_class **classp, bus_space_tag_t *bst,
if (err != 0)
goto out;
- *classp = cd->clas;
+ *classp = cd->cd_class;
*rclk = 0;
*shiftp = 2;
*iowidthp = spcr->SerialPort.BitWidth / 8;