clock-frequency is a FreeBSD-specific extention. Make it optional and

allow the client uart drivers to decide if a frequency is required.
This commit is contained in:
Warner Losh 2014-01-24 00:14:14 +00:00
parent 524d7a4d4e
commit 65e79cf474
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261092

View File

@ -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' */