summaryrefslogtreecommitdiff
path: root/drivers/staging/tidspbridge/pmgr
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2012-03-09 00:03:42 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-09 21:21:07 (GMT)
commit974f9cd50ae72c02490298372a2a64fb47c4de91 (patch)
treec5ef51177c7958147dd7adcea6654a5f2ce0f2fd /drivers/staging/tidspbridge/pmgr
parent311abd9ac44f72f4d10adaaf3af1c273b0f71db8 (diff)
downloadlinux-fsl-qoriq-974f9cd50ae72c02490298372a2a64fb47c4de91.tar.xz
staging: tidspbridge: remove rmm_init() and rmm_exit()
The rmm module has a rmm_init() and a rmm_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.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/staging/tidspbridge/pmgr/dspapi.c b/drivers/staging/tidspbridge/pmgr/dspapi.c
index 06e3b24..0a55465 100644
--- a/drivers/staging/tidspbridge/pmgr/dspapi.c
+++ b/drivers/staging/tidspbridge/pmgr/dspapi.c
@@ -272,7 +272,6 @@ void api_exit(void)
msg_exit();
io_exit();
mgr_exit();
- rmm_exit();
}
}
@@ -285,18 +284,17 @@ bool api_init(void)
{
bool ret = true;
bool fdev, fchnl, fmsg, fio;
- bool fmgr, frmm;
+ bool fmgr;
if (api_c_refs == 0) {
/* initialize driver and other modules */
fmgr = mgr_init();
- frmm = rmm_init();
fchnl = chnl_init();
fmsg = msg_mod_init();
fio = io_init();
fdev = dev_init();
ret = fdev && fchnl && fmsg && fio;
- ret = ret && fmgr && frmm;
+ ret = ret && fmgr;
if (!ret) {
if (fmgr)
@@ -313,10 +311,6 @@ bool api_init(void)
if (fdev)
dev_exit();
-
- if (frmm)
- rmm_exit();
-
}
}
if (ret)