summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2025-01-19 11:03:56 -0800
committerAnup Patel <[email protected]>2025-02-12 21:27:54 +0530
commite84ba966347009a2dae61d7399bc68c28892847e (patch)
treeefed897e57aea89f61667097667626541f0501d4
parent9e1a1518d45968bb08f0996622ab25379135cf39 (diff)
lib: utils/fdt: Remove fdt_find_match()
Now that all drivers are using the fdt_driver functions for initialization, this function is unused and can be removed. Signed-off-by: Samuel Holland <[email protected]> Reviewed-by: Anup Patel <[email protected]>
-rw-r--r--include/sbi_utils/fdt/fdt_helper.h4
-rw-r--r--lib/utils/fdt/fdt_helper.c23
2 files changed, 0 insertions, 27 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h
index 6a37d971..ff830025 100644
--- a/include/sbi_utils/fdt/fdt_helper.h
+++ b/include/sbi_utils/fdt/fdt_helper.h
@@ -37,10 +37,6 @@ struct platform_uart_data {
const struct fdt_match *fdt_match_node(const void *fdt, int nodeoff,
const struct fdt_match *match_table);
-int fdt_find_match(const void *fdt, int startoff,
- const struct fdt_match *match_table,
- const struct fdt_match **out_match);
-
int fdt_parse_phandle_with_args(const void *fdt, int nodeoff,
const char *prop, const char *cells_prop,
int index, struct fdt_phandle_args *out_args);
diff --git a/lib/utils/fdt/fdt_helper.c b/lib/utils/fdt/fdt_helper.c
index c997da27..bc357b2f 100644
--- a/lib/utils/fdt/fdt_helper.c
+++ b/lib/utils/fdt/fdt_helper.c
@@ -52,29 +52,6 @@ const struct fdt_match *fdt_match_node(const void *fdt, int nodeoff,
return NULL;
}
-int fdt_find_match(const void *fdt, int startoff,
- const struct fdt_match *match_table,
- const struct fdt_match **out_match)
-{
- int nodeoff;
-
- if (!fdt || !match_table)
- return SBI_ENODEV;
-
- while (match_table->compatible) {
- nodeoff = fdt_node_offset_by_compatible(fdt, startoff,
- match_table->compatible);
- if (nodeoff >= 0) {
- if (out_match)
- *out_match = match_table;
- return nodeoff;
- }
- match_table++;
- }
-
- return SBI_ENODEV;
-}
-
int fdt_parse_phandle_with_args(const void *fdt, int nodeoff,
const char *prop, const char *cells_prop,
int index, struct fdt_phandle_args *out_args)