diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2012-03-09 04:03:37 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-10 01:21:06 +0400 |
commit | d4040fadc0b8bc109268cf278bab6f2132e7ab0f (patch) | |
tree | 7549d92b9001af9a36aa2fdb18aa7bc9cc8d0df2 /drivers/staging/tidspbridge/pmgr | |
parent | 1f2cd527e2b206d915aaae62a0ff9dbf3b29ff8d (diff) | |
download | linux-d4040fadc0b8bc109268cf278bab6f2132e7ab0f.tar.xz |
staging: tidspbridge: remove cod_init() and cod_exit()
The cod module has a cod_init() and a cod_exit() whose only purpose is
to keep a reference counting which is not used at all.
This patch removes these functions and the reference count variable.
There is no functional changes.
Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/tidspbridge/pmgr')
-rw-r--r-- | drivers/staging/tidspbridge/pmgr/cod.c | 29 | ||||
-rw-r--r-- | drivers/staging/tidspbridge/pmgr/dspapi.c | 9 |
2 files changed, 2 insertions, 36 deletions
diff --git a/drivers/staging/tidspbridge/pmgr/cod.c b/drivers/staging/tidspbridge/pmgr/cod.c index d01fb8e364b2..4007826f7abc 100644 --- a/drivers/staging/tidspbridge/pmgr/cod.c +++ b/drivers/staging/tidspbridge/pmgr/cod.c @@ -58,8 +58,6 @@ struct cod_libraryobj { struct cod_manager *cod_mgr; }; -static u32 refs = 0L; - static struct dbll_fxns ldr_fxns = { (dbll_close_fxn) dbll_close, (dbll_create_fxn) dbll_create, @@ -268,17 +266,6 @@ void cod_delete(struct cod_manager *cod_mgr_obj) } /* - * ======== cod_exit ======== - * Purpose: - * Discontinue usage of the COD module. - * - */ -void cod_exit(void) -{ - refs--; -} - -/* * ======== cod_get_base_lib ======== * Purpose: * Get handle to the base image DBL library. @@ -395,22 +382,6 @@ int cod_get_sym_value(struct cod_manager *cod_mgr_obj, char *str_sym, } /* - * ======== cod_init ======== - * Purpose: - * Initialize the COD module's private state. - * - */ -bool cod_init(void) -{ - bool ret = true; - - if (ret) - refs++; - - return ret; -} - -/* * ======== cod_load_base ======== * Purpose: * Load the initial program image, optionally with command-line arguments, diff --git a/drivers/staging/tidspbridge/pmgr/dspapi.c b/drivers/staging/tidspbridge/pmgr/dspapi.c index dcf1dabcfc26..971e8390a2e6 100644 --- a/drivers/staging/tidspbridge/pmgr/dspapi.c +++ b/drivers/staging/tidspbridge/pmgr/dspapi.c @@ -267,7 +267,6 @@ void api_exit(void) if (api_c_refs == 0) { /* Release all modules initialized in api_init(). */ - cod_exit(); dev_exit(); chnl_exit(); msg_exit(); @@ -289,7 +288,7 @@ void api_exit(void) bool api_init(void) { bool ret = true; - bool fdev, fcod, fchnl, fmsg, fio; + bool fdev, fchnl, fmsg, fio; bool fmgr, fproc, fnode, fdisp, fstrm, frmm; if (api_c_refs == 0) { @@ -304,8 +303,7 @@ bool api_init(void) fmsg = msg_mod_init(); fio = io_init(); fdev = dev_init(); - fcod = cod_init(); - ret = fdev && fchnl && fcod && fmsg && fio; + ret = fdev && fchnl && fmsg && fio; ret = ret && fmgr && fproc && frmm; if (!ret) { @@ -336,9 +334,6 @@ bool api_init(void) if (fdev) dev_exit(); - if (fcod) - cod_exit(); - if (frmm) rmm_exit(); |