mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00
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 <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
9e1a1518d4
commit
e84ba96634
@@ -37,10 +37,6 @@ struct platform_uart_data {
|
|||||||
const struct fdt_match *fdt_match_node(const void *fdt, int nodeoff,
|
const struct fdt_match *fdt_match_node(const void *fdt, int nodeoff,
|
||||||
const struct fdt_match *match_table);
|
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,
|
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);
|
||||||
|
@@ -52,29 +52,6 @@ const struct fdt_match *fdt_match_node(const void *fdt, int nodeoff,
|
|||||||
return NULL;
|
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,
|
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