summaryrefslogtreecommitdiff
path: root/drivers/staging/tidspbridge/pmgr
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2012-03-09 04:03:41 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-10 01:21:06 +0400
commit311abd9ac44f72f4d10adaaf3af1c273b0f71db8 (patch)
treefe2f26e5690b42909d2155b75464f56b3c8a5490 /drivers/staging/tidspbridge/pmgr
parent2f69a43b8f5befc3d110c22a2823170f720432ff (diff)
downloadlinux-311abd9ac44f72f4d10adaaf3af1c273b0f71db8.tar.xz
staging: tidspbridge: remove strm_init() and strm_exit()
The strm module has a strm_init() and a strm_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/dspapi.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/tidspbridge/pmgr/dspapi.c b/drivers/staging/tidspbridge/pmgr/dspapi.c
index b1a99f76694c..06e3b244f83f 100644
--- a/drivers/staging/tidspbridge/pmgr/dspapi.c
+++ b/drivers/staging/tidspbridge/pmgr/dspapi.c
@@ -271,7 +271,6 @@ void api_exit(void)
chnl_exit();
msg_exit();
io_exit();
- strm_exit();
mgr_exit();
rmm_exit();
}
@@ -286,12 +285,11 @@ bool api_init(void)
{
bool ret = true;
bool fdev, fchnl, fmsg, fio;
- bool fmgr, fstrm, frmm;
+ bool fmgr, frmm;
if (api_c_refs == 0) {
/* initialize driver and other modules */
fmgr = mgr_init();
- fstrm = strm_init();
frmm = rmm_init();
fchnl = chnl_init();
fmsg = msg_mod_init();
@@ -304,9 +302,6 @@ bool api_init(void)
if (fmgr)
mgr_exit();
- if (fstrm)
- strm_exit();
-
if (fchnl)
chnl_exit();