lib: utils: Remove fdt_domain_get() function

The fdt_domain_get() function is now redundant because the
fdt_domains_populate() function can explicitly register new
domains using the sbi_domain_register() function.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
Anup Patel
2020-12-13 15:37:34 +05:30
committed by Anup Patel
parent 7baccfca79
commit 6fc1986f50
3 changed files with 36 additions and 59 deletions

View File

@@ -58,17 +58,6 @@ int fdt_iterate_each_memregion(void *fdt, int domain_offset, void *opaque,
*/
void fdt_domain_fixup(void *fdt);
/**
* Get domain instance for given HART
*
* Note: Domains should be populated before using this function.
*
* @param hartid the HART for which domain instance is needed
*
* @return pointer to domain instance on success and NULL on failure
*/
struct sbi_domain *fdt_domain_get(u32 hartid);
/**
* Populate domains from device tree
*