summaryrefslogtreecommitdiff
path: root/sys/dev/uart
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2014-05-17 00:53:12 +0000
committerIan Lepore <ian@FreeBSD.org>2014-05-17 00:53:12 +0000
commit1ead3d43cdd6a38d17e9f1558c850221c171b77c (patch)
treea678b33cef5a4d49b1c5fdb050ea93cf7bea3287 /sys/dev/uart
parent946b7ce0ee8a47ba50b0db43fd6a78d8db6e6dfd (diff)
Notes
Diffstat (limited to 'sys/dev/uart')
-rw-r--r--sys/dev/uart/uart_bus_fdt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_bus_fdt.c b/sys/dev/uart/uart_bus_fdt.c
index f434f4f4fc01..92e155b34a7a 100644
--- a/sys/dev/uart/uart_bus_fdt.c
+++ b/sys/dev/uart/uart_bus_fdt.c
@@ -97,9 +97,12 @@ uart_fdt_get_clock(phandle_t node, pcell_t *cell)
{
pcell_t clock;
+ /*
+ * clock-frequency is a FreeBSD-specific hack. Make its presence optional.
+ */
if ((OF_getprop(node, "clock-frequency", &clock,
sizeof(clock))) <= 0)
- return (ENXIO);
+ clock = 0;
if (clock == 0)
/* Try to retrieve parent 'bus-frequency' */