[PATCH 09/10] lib: utils/fdt: Remove fdt_match_node()
Anup Patel
anup at brainfault.org
Tue Apr 22 21:02:06 PDT 2025
On Wed, Mar 26, 2025 at 5:13 AM Samuel Holland
<samuel.holland at sifive.com> wrote:
>
> This function has been obsoleted by the fdt_driver library and is no
> longer used.
>
> Signed-off-by: Samuel Holland <samuel.holland at sifive.com>
LGTM.
Reviewed-by: Anup Patel <anup at brainfault.org>
Regards,
Anup
> ---
>
> 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 bc357b2f..62564d28 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)
> --
> 2.47.2
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
More information about the opensbi
mailing list