svn commit: r261092 - head/sys/dev/uart
Warner Losh
imp at FreeBSD.org
Fri Jan 24 00:14:14 UTC 2014
Author: imp
Date: Fri Jan 24 00:14:14 2014
New Revision: 261092
URL: http://svnweb.freebsd.org/changeset/base/261092
Log:
clock-frequency is a FreeBSD-specific extention. Make it optional and
allow the client uart drivers to decide if a frequency is required.
Modified:
head/sys/dev/uart/uart_cpu_fdt.c
Modified: head/sys/dev/uart/uart_cpu_fdt.c
==============================================================================
--- head/sys/dev/uart/uart_cpu_fdt.c Thu Jan 23 21:30:31 2014 (r261091)
+++ head/sys/dev/uart/uart_cpu_fdt.c Fri Jan 24 00:14:14 2014 (r261092)
@@ -62,9 +62,10 @@ uart_fdt_get_clock(phandle_t node, pcell
{
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' */
More information about the svn-src-all
mailing list