forked from Mirrors/opensbi
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 <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20250325234342.711447-10-samuel.holland@sifive.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
1c579675be
commit
0dd8a26f1f
@@ -34,9 +34,6 @@ struct platform_uart_data {
|
|||||||
unsigned long reg_offset;
|
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,
|
int fdt_parse_phandle_with_args(const void *fdt, int nodeoff,
|
||||||
const char *prop, const char *cells_prop,
|
const char *prop, const char *cells_prop,
|
||||||
int index, struct fdt_phandle_args *out_args);
|
int index, struct fdt_phandle_args *out_args);
|
||||||
|
@@ -33,25 +33,6 @@
|
|||||||
#define DEFAULT_SHAKTI_UART_FREQ 50000000
|
#define DEFAULT_SHAKTI_UART_FREQ 50000000
|
||||||
#define DEFAULT_SHAKTI_UART_BAUD 115200
|
#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,
|
int fdt_parse_phandle_with_args(const void *fdt, int nodeoff,
|
||||||
const char *prop, const char *cells_prop,
|
const char *prop, const char *cells_prop,
|
||||||
int index, struct fdt_phandle_args *out_args)
|
int index, struct fdt_phandle_args *out_args)
|
||||||
|
Reference in New Issue
Block a user