mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261092
@ -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 New Issue
Block a user