aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/uart
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2024-05-15 15:53:33 +0000
committerJessica Clarke <jrtc27@FreeBSD.org>2024-05-15 15:53:33 +0000
commitfc59fc3c1f632e011347614ee9704fe00e51002e (patch)
tree6c8606552a695c6a663b5aab49173e9c30078bfa /sys/dev/uart
parentea3751fb53b21a1e8daaf157cb90a69996e4fe2d (diff)
Diffstat (limited to 'sys/dev/uart')
-rw-r--r--sys/dev/uart/uart_bus_fdt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_bus_fdt.c b/sys/dev/uart/uart_bus_fdt.c
index 7725d09e212b..431f2962adb2 100644
--- a/sys/dev/uart/uart_bus_fdt.c
+++ b/sys/dev/uart/uart_bus_fdt.c
@@ -234,7 +234,8 @@ uart_cpu_fdt_probe(struct uart_class **classp, bus_space_tag_t *bst,
(struct uart_class *)uart_fdt_find_by_node(node, 1);
if (class == NULL)
return (ENXIO);
- clk = 0;
+ if (uart_fdt_get_clock(node, &clk) != 0)
+ clk = 0;
}
/*