mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
524d7a4d4e
commit
65e79cf474
1 changed files with 2 additions and 1 deletions
|
|
@ -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' */
|
||||
|
|
|
|||
Loading…
Reference in a new issue