@@ -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.
@@ -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;
-}
@@ -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;