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)