diff mbox

[05/13] DSPBRIDGE: Remove mem_init and mem_exit functions

Message ID 818EF96F5A7CC84789DD014773DB09548E64D150@dlee01.ent.ti.com (mailing list archive)
State Accepted
Delegated to:
Headers show

Commit Message

Gomez Castellanos, Ivan April 9, 2010, 12:01 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/include/dspbridge/mem.h b/arch/arm/plat-omap/include/dspbridge/mem.h
index 9f713b9..f321f3f 100644
--- a/arch/arm/plat-omap/include/dspbridge/mem.h
+++ b/arch/arm/plat-omap/include/dspbridge/mem.h
@@ -90,20 +90,6 @@  extern void *mem_alloc(IN u32 byte_size, IN enum mem_poolattrs type);
 extern void *mem_calloc(IN u32 byte_size, IN enum mem_poolattrs type);
 
 /*
- *  ======== mem_exit ========
- *  Purpose:
- *      Discontinue usage of module; free resources when reference count
- *      reaches 0.
- *  Parameters:
- *  Returns:
- *  Requires:
- *      MEM is initialized.
- *  Ensures:
- *      Resources used by module are freed when cRef reaches zero.
- */
-extern void mem_exit(void);
-
-/*
  *  ======== MEM_FREE_OBJECT ========
  *  Purpose:
  *      Utility macro to invalidate an object's signature, and deallocate it.
@@ -138,19 +124,6 @@  extern void mem_exit(void);
 extern s32 mem_get_num_pages(IN void *paddr, IN u32 byte_size);
 
 /*
- *  ======== services_mem_init ========
- *  Purpose:
- *      Initializes private state of MEM module.
- *  Parameters:
- *  Returns:
- *      TRUE if initialized; FALSE if error occured.
- *  Requires:
- *  Ensures:
- *      MEM initialized.
- */
-extern bool services_mem_init(void);
-
-/*
  *  ======== MEM_IS_VALID_HANDLE ========
  *  Purpose:
  *      Validate the object handle.
diff --git a/drivers/dsp/bridge/services/mem.c b/drivers/dsp/bridge/services/mem.c
index 6e8834a..cf33e89 100644
--- a/drivers/dsp/bridge/services/mem.c
+++ b/drivers/dsp/bridge/services/mem.c
@@ -96,24 +96,3 @@  void *mem_calloc(u32 byte_size, enum mem_poolattrs type)
 
 	return mem;
 }
-
-/*
- *  ======== mem_exit ========
- *  Purpose:
- *      Discontinue usage of the MEM module.
- */
-void mem_exit(void)
-{
-}
-
-
-
-/*
- *  ======== services_mem_init ========
- *  Purpose:
- *      Initialize MEM module private state.
- */
-bool services_mem_init(void)
-{
-	return true;
-}
diff --git a/drivers/dsp/bridge/services/services.c b/drivers/dsp/bridge/services/services.c
index df3de5f..49a0a89 100644
--- a/drivers/dsp/bridge/services/services.c
+++ b/drivers/dsp/bridge/services/services.c
@@ -48,7 +48,6 @@  void services_exit(void)
 	clk_exit();
 	reg_exit();
 	cfg_exit();
-	mem_exit();
 }
 
 /*
@@ -59,16 +58,15 @@  void services_exit(void)
 bool services_init(void)
 {
 	bool ret = true;
-	bool fcfg, fmem;
+	bool fcfg;
 	bool freg, fclk;
 
 	/* Perform required initialization of SERVICES modules. */
-	fmem = services_mem_init();
 	freg = reg_init();
 	fcfg = cfg_init();
 	fclk = services_clk_init();
 
-	ret = fcfg && fmem && freg && fclk;
+	ret = fcfg && freg && fclk;
 
 	if (!ret) {
 
@@ -80,10 +78,6 @@  bool services_init(void)
 
 		if (fcfg)
 			cfg_exit();
-
-		if (fmem)
-			mem_exit();
-
 	}
 
 	return ret;