staging: tidspbridge: Remove cfg_init() and cfg_exit()
authorIvan Gomez Castellanos <ivan.gomez@ti.com>
Wed, 25 Aug 2010 22:08:57 +0000 (17:08 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Aug 2010 18:23:15 +0000 (11:23 -0700)
The functions cfg_init() and cfg_exit() do nothing, so they are removed.

Signed-off-by: Ivan Gomez Castellanos <ivan.gomez@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/tidspbridge/include/dspbridge/cfg.h
drivers/staging/tidspbridge/services/cfg.c
drivers/staging/tidspbridge/services/services.c

index a84fa2b084b0a9f789d205340b27267c06c67bf2..eea90001bfff79f271baffb73ebc63744190cd3b 100644 (file)
 #include <dspbridge/host_os.h>
 #include <dspbridge/cfgdefs.h>
 
-/*
- *  ======== cfg_exit ========
- *  Purpose:
- *      Discontinue usage of the CFG module.
- *  Parameters:
- *  Returns:
- *  Requires:
- *      cfg_init(void) was previously called.
- *  Ensures:
- *      Resources acquired in cfg_init(void) are freed.
- */
-extern void cfg_exit(void);
-
 /*
  *  ======== cfg_get_cd_version ========
  *  Purpose:
@@ -151,19 +138,6 @@ extern void cfg_get_perf_value(bool *enable_perf);
 extern int cfg_get_zl_file(struct cfg_devnode *dev_node_obj,
                                  u32 buf_size, char *str_zl_file_name);
 
-/*
- *  ======== cfg_init ========
- *  Purpose:
- *      Initialize the CFG module's private state.
- *  Parameters:
- *  Returns:
- *      TRUE if initialized; FALSE if error occured.
- *  Requires:
- *  Ensures:
- *      A requirement for each of the other public CFG functions.
- */
-extern bool cfg_init(void);
-
 /*
  *  ======== cfg_set_dev_object ========
  *  Purpose:
index e9cdbf6d36b11df96f744b3ad7d9613897cdc90e..b9c38829921b28dfa9f05dd6c86b9450ce1d55d4 100644 (file)
@@ -35,16 +35,6 @@ struct drv_ext {
        char sz_string[MAXREGPATHLENGTH];
 };
 
-/*
- *  ======== cfg_exit ========
- *  Purpose:
- *      Discontinue usage of the CFG module.
- */
-void cfg_exit(void)
-{
-       /* Do nothing */
-}
-
 /*
  *  ======== cfg_get_dev_object ========
  *  Purpose:
@@ -156,16 +146,6 @@ int cfg_get_object(u32 *value, u8 dw_type)
        return status;
 }
 
-/*
- *  ======== cfg_init ========
- *  Purpose:
- *      Initialize the CFG module's private state.
- */
-bool cfg_init(void)
-{
-       return true;
-}
-
 /*
  *  ======== cfg_set_dev_object ========
  *  Purpose:
index 6a7dd6f3ecbadefe487dc7ba193dd79f1b7417b0..47bac21144b1769b0dfdecba935c547df650f626 100644 (file)
@@ -43,7 +43,6 @@
  */
 void services_exit(void)
 {
-       cfg_exit();
 }
 
 /*
@@ -54,17 +53,6 @@ void services_exit(void)
 bool services_init(void)
 {
        bool ret = true;
-       bool fcfg;
-
-       /* Perform required initialization of SERVICES modules. */
-       fcfg = cfg_init();
-
-       ret = fcfg;
-
-       if (!ret) {
-               if (fcfg)
-                       cfg_exit();
-       }
 
        return ret;
 }