diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-12-13 15:44:22 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-12-16 10:10:28 +0530 |
commit | a029bd90c63307e9ef2d7ddbaa2eb2c799fca98a (patch) | |
tree | 78a25fa96bf5b35464f8b92481d5529146ea0624 /include | |
parent | 6fc1986f5024196e46a46aa979cc2c884319af28 (diff) |
lib: sbi: Remove domain_get() platform callback function
The domain_get() platform callback function is now redundant
because fdt_domain_populate() register new domain explicitly
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/sbi/sbi_platform.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h index 3681a78..58aba71 100644 --- a/include/sbi/sbi_platform.h +++ b/include/sbi/sbi_platform.h @@ -93,8 +93,6 @@ struct sbi_platform_operations { /** Initialize (or populate) domains for the platform */ int (*domains_init)(void); - /** Get domain pointer for given HART id */ - struct sbi_domain *(*domain_get)(u32 hartid); /** Write a character to the platform console output */ void (*console_putc)(char ch); @@ -468,22 +466,6 @@ static inline int sbi_platform_domains_init(const struct sbi_platform *plat) } /** - * Get domain pointer for given HART - * - * @param plat pointer to struct sbi_platform - * @param hartid shorthand letter for CPU extensions - * - * @return non-NULL domain pointer on success and NULL on failure - */ -static inline struct sbi_domain *sbi_platform_domain_get( - const struct sbi_platform *plat, u32 hartid) -{ - if (plat && sbi_platform_ops(plat)->domain_get) - return sbi_platform_ops(plat)->domain_get(hartid); - return NULL; -} - -/** * Write a character to the platform console output * * @param plat pointer to struct sbi_platform |