From a029bd90c63307e9ef2d7ddbaa2eb2c799fca98a Mon Sep 17 00:00:00 2001
From: Anup Patel <anup.patel@wdc.com>
Date: Sun, 13 Dec 2020 15:44:22 +0530
Subject: 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>
---
 include/sbi/sbi_platform.h | 18 ------------------
 1 file changed, 18 deletions(-)

(limited to 'include')

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);
@@ -467,22 +465,6 @@ static inline int sbi_platform_domains_init(const struct sbi_platform *plat)
 	return 0;
 }
 
-/**
- * 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
  *
-- 
cgit v1.2.3