mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
Make fdt_is_compatible a static function. It's only used in fdt_common.c.
Sponsored by: ABT Systems Ltd
This commit is contained in:
parent
487012f4f8
commit
f74776ed75
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308830
@ -69,6 +69,8 @@ vm_offset_t fdt_immr_size;
|
||||
|
||||
struct fdt_ic_list fdt_ic_list_head = SLIST_HEAD_INITIALIZER(fdt_ic_list_head);
|
||||
|
||||
static int fdt_is_compatible(phandle_t, const char *);
|
||||
|
||||
static int
|
||||
fdt_get_range_by_busaddr(phandle_t node, u_long addr, u_long *base,
|
||||
u_long *size)
|
||||
@ -242,7 +244,7 @@ fdt_immr_addr(vm_offset_t immr_va)
|
||||
* Note the buffer has to be on the stack since malloc() is usually not
|
||||
* available in such cases either.
|
||||
*/
|
||||
int
|
||||
static int
|
||||
fdt_is_compatible(phandle_t node, const char *compatstr)
|
||||
{
|
||||
char buf[FDT_COMPAT_LEN];
|
||||
|
@ -94,7 +94,6 @@ int fdt_get_phyaddr(phandle_t, device_t, int *, void **);
|
||||
int fdt_get_range(phandle_t, int, u_long *, u_long *);
|
||||
int fdt_immr_addr(vm_offset_t);
|
||||
int fdt_regsize(phandle_t, u_long *, u_long *);
|
||||
int fdt_is_compatible(phandle_t, const char *);
|
||||
int fdt_is_compatible_strict(phandle_t, const char *);
|
||||
int fdt_is_enabled(phandle_t);
|
||||
int fdt_pm_is_enabled(phandle_t);
|
||||
|
Loading…
Reference in New Issue
Block a user