DSPBRIDGE: remove ntfy_init/exit functions
Subsystems (2)
PATCH 1/3 DSPBRIDGE: remove ntfy_init/exit functions
Quoted 1 line
From
06b665342b8c96d36eb3211e50b7d24a196182fbMon Sep 17 00:00:00 2001
From: Fernando Guzman Lugo <[email protected]>
Date: Wed, 24 Mar 2010 12:28:06 -0600
Subject: [PATCH] DSPBRIDGE: remove ntfy_init/exit functions
This patches removes ntfy_init/exit funcitons which are doing nothing.
Signed-off-by Fernando Guzman Lugo <[email protected]>
--- arch/arm/plat-omap/include/dspbridge/ntfy.h | 27 --------------------------- drivers/dsp/bridge/services/ntfy.c | 20 -------------------- drivers/dsp/bridge/services/services.c | 6 +----- 3 files changed, 1 insertions(+), 52 deletions(-)
arch/arm/plat-omap/include/dspbridge/ntfy.h +0 -27
@@ -31,7 +31,6 @@ struct ntfy_object;* DSP_SOK: Success. * DSP_EMEMORY: Memory allocation failure. * Requires: -* ntfy_init(void) called. * phNtfy != NULL. * Ensures: * DSP_SUCCEEDED(status) <==> IS_VALID(*phNtfy).
@@ -46,36 +45,12 @@ extern dsp_status ntfy_create(OUT struct ntfy_object **phNtfy);* ntfy_obj: Handle returned from ntfy_create(). * Returns: * Requires: -* ntfy_init(void) called. * IS_VALID(ntfy_obj). * Ensures: */ extern void ntfy_delete(IN struct ntfy_object *ntfy_obj);/* -* ======== ntfy_exit ======== -* Purpose: -* Discontinue usage of NTFY module. -* Parameters: -* Returns: -* Requires: -* ntfy_init(void) successfully called before. -* Ensures: -*/ -extern void ntfy_exit (void ); - -/* -* ======== ntfy_init ======== -* Purpose: -* Initialize the NTFY module. -* Parameters: -* Returns: -* TRUE if initialization succeeded, FALSE otherwise. -* Ensures: -*/ -extern bool ntfy_init (void ); - -/* * ======== ntfy_notify ======== * Purpose: * Execute notify function (signal event or post message) for every
@@ -86,7 +61,6 @@ extern bool ntfy_init(void);* event_mask: The type of event that has occurred. * Returns: * Requires: -* ntfy_init(void) called. * IS_VALID(ntfy_obj). * Ensures: */
@@ -112,7 +86,6 @@ extern void ntfy_notify(IN struct ntfy_object *ntfy_obj, IN u32 event_mask);* DSP_EHANDLE: NULL hnotification, hnotification event name * too long, or hnotification event name NULL. * Requires: -* ntfy_init(void) called. * IS_VALID(ntfy_obj). * hnotification != NULL. * notify_type is DSP_SIGNALEVENT
drivers/dsp/bridge/services/ntfy.c +0 -20
@@ -132,26 +132,6 @@ void ntfy_delete(struct ntfy_object *ntfy_obj) }/* -* ======== ntfy_exit ======== -* Purpose: -* Discontinue usage of NTFY module. -*/ -void ntfy_exit (void ) -{ -/* Do nothing */ -} - -/* -* ======== ntfy_init ======== -* Purpose: -* Initialize the NTFY module. -*/ -bool ntfy_init (void ) -{ -return true; -} - -/* * ======== ntfy_notify ======== * Purpose: * Execute notify function (signal event) for every
drivers/dsp/bridge/services/services.c +1 -5
@@ -45,7 +45,6 @@void services_exit (void ) {/* Uninitialize all SERVICES modules here */ -ntfy_exit ();clk_exit ();reg_exit ();cfg_exit ();
@@ -61,20 +60,17 @@ bool services_init(void) {bool ret = true;bool fcfg, fmem; -bool freg, fclk, fntfy; +bool freg, fclk;/* Perform required initialization of SERVICES modules. */ fmem =services_mem_init (); freg =reg_init (); fcfg =cfg_init (); fclk =services_clk_init (); - fntfy =ntfy_init (); ret = fcfg && fmem && freg && fclk;if (!ret) { -if (fntfy) -ntfy_exit ();if (fclk)clk_exit ();
Signature · 1 line
1.6.0.4