diff options
author | imp <imp@FreeBSD.org> | 2014-01-24 00:14:14 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-01-24 00:14:14 +0000 |
commit | 5979ccd151f2146f8c87768ed1811960db6288e1 (patch) | |
tree | 39b23841dcd8629644fb90940e78f9e93f2843c1 | |
parent | 165a2b750024b9cb7404936015efc1ec6548c04a (diff) | |
download | FreeBSD-src-5979ccd151f2146f8c87768ed1811960db6288e1.zip FreeBSD-src-5979ccd151f2146f8c87768ed1811960db6288e1.tar.gz |
clock-frequency is a FreeBSD-specific extention. Make it optional and
allow the client uart drivers to decide if a frequency is required.
-rw-r--r-- | sys/dev/uart/uart_cpu_fdt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_cpu_fdt.c b/sys/dev/uart/uart_cpu_fdt.c index 9bf3549..356049b 100644 --- a/sys/dev/uart/uart_cpu_fdt.c +++ b/sys/dev/uart/uart_cpu_fdt.c @@ -62,9 +62,10 @@ uart_fdt_get_clock(phandle_t node, pcell_t *cell) { pcell_t clock; + /* clock-frequency is a FreeBSD-only extention. */ if ((OF_getprop(node, "clock-frequency", &clock, sizeof(clock))) <= 0) - return (ENXIO); + clock = 0; if (clock == 0) /* Try to retrieve parent 'bus-frequency' */ |