From 0dd8a26f1f3a6091a2ea6e4175fd63a79bba86d9 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 25 Mar 2025 16:43:32 -0700 Subject: [PATCH] lib: utils/fdt: Remove fdt_match_node() This function has been obsoleted by the fdt_driver library and is no longer used. Signed-off-by: Samuel Holland Reviewed-by: Anup Patel Link: https://lore.kernel.org/r/20250325234342.711447-10-samuel.holland@sifive.com Signed-off-by: Anup Patel --- include/sbi_utils/fdt/fdt_helper.h | 3 --- lib/utils/fdt/fdt_helper.c | 19 ------------------- 2 files changed, 22 deletions(-) diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h index ff830025..58758808 100644 --- a/include/sbi_utils/fdt/fdt_helper.h +++ b/include/sbi_utils/fdt/fdt_helper.h @@ -34,9 +34,6 @@ struct platform_uart_data { unsigned long reg_offset; }; -const struct fdt_match *fdt_match_node(const void *fdt, int nodeoff, - const struct fdt_match *match_table); - 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 8939d906..79e59dd5 100644 --- a/lib/utils/fdt/fdt_helper.c +++ b/lib/utils/fdt/fdt_helper.c @@ -33,25 +33,6 @@ #define DEFAULT_SHAKTI_UART_FREQ 50000000 #define DEFAULT_SHAKTI_UART_BAUD 115200 -const struct fdt_match *fdt_match_node(const void *fdt, int nodeoff, - const struct fdt_match *match_table) -{ - int ret; - - if (!fdt || nodeoff < 0 || !match_table) - return NULL; - - while (match_table->compatible) { - ret = fdt_node_check_compatible(fdt, nodeoff, - match_table->compatible); - if (!ret) - return match_table; - match_table++; - } - - return NULL; -} - 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)