diff options
author | gonzo <gonzo@FreeBSD.org> | 2015-05-24 23:53:10 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2015-05-24 23:53:10 +0000 |
commit | 81e58ddcdd0272078011c41745e6d60eedd418f7 (patch) | |
tree | af4324f9fe1f053baaab46e0520bfabf611c4e9b /sys/dev/fdt/fdt_common.c | |
parent | 4342741d9a4cecf5d5415becc7e5e2e58b22ce6c (diff) | |
download | FreeBSD-src-81e58ddcdd0272078011c41745e6d60eedd418f7.zip FreeBSD-src-81e58ddcdd0272078011c41745e6d60eedd418f7.tar.gz |
Rename fdt_find_child to ofw_bus_find_child. There is nothing FDT-specific
in this function.
Suggested by: andrew@
Diffstat (limited to 'sys/dev/fdt/fdt_common.c')
-rw-r--r-- | sys/dev/fdt/fdt_common.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/dev/fdt/fdt_common.c b/sys/dev/fdt/fdt_common.c index 0198d55..f00519e 100644 --- a/sys/dev/fdt/fdt_common.c +++ b/sys/dev/fdt/fdt_common.c @@ -57,7 +57,6 @@ __FBSDID("$FreeBSD$"); #define FDT_COMPAT_LEN 255 #define FDT_TYPE_LEN 64 -#define FDT_NAME_LEN 32 #define FDT_REG_CELLS 4 @@ -311,22 +310,6 @@ fdt_find_compatible(phandle_t start, const char *compat, int strict) } phandle_t -fdt_find_child(phandle_t start, const char *child_name) -{ - char name[FDT_NAME_LEN]; - phandle_t child; - - for (child = OF_child(start); child != 0; child = OF_peer(child)) { - if (OF_getprop(child, "name", name, sizeof(name)) <= 0) - continue; - if (strcmp(name, child_name) == 0) - return (child); - } - - return (0); -} - -phandle_t fdt_depth_search_compatible(phandle_t start, const char *compat, int strict) { phandle_t child, node; |