diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2012-03-09 00:03:51 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-09 21:21:08 (GMT) |
commit | 81e8b88a1431bf1209d882da047c94eb8bcc1f14 (patch) | |
tree | 824439e827ede49ea9a774e4fd74edd7cb4701a8 /drivers/staging/tidspbridge | |
parent | d111f6e94da7cf26daee5ccc06406fd4ec904350 (diff) | |
download | linux-81e8b88a1431bf1209d882da047c94eb8bcc1f14.tar.xz |
staging: tidspbridge: remove ref counting in nldr.c
The nldr module has a nldr_init() and a nldr_exit() whose only purpose
is to keep a reference counting which is not used at all.
This patch only removes the reference count variable, but not the
functions, because they are used through an interface.
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')
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/nldr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/nldr.c b/drivers/staging/tidspbridge/rmgr/nldr.c index a9d7a32..46086b5 100644 --- a/drivers/staging/tidspbridge/rmgr/nldr.c +++ b/drivers/staging/tidspbridge/rmgr/nldr.c @@ -263,8 +263,6 @@ static struct dbll_fxns ldr_fxns = { (dbll_unload_fxn) dbll_unload, }; -static u32 refs; /* module reference count */ - static int add_ovly_info(void *handle, struct dbll_sect_info *sect_info, u32 addr, u32 bytes); static int add_ovly_node(struct dsp_uuid *uuid_obj, @@ -627,7 +625,7 @@ void nldr_delete(struct nldr_object *nldr_obj) */ void nldr_exit(void) { - refs--; + /* do nothing */ } /* @@ -743,8 +741,7 @@ int nldr_get_rmm_manager(struct nldr_object *nldr, */ bool nldr_init(void) { - refs++; - + /* do nothing */ return true; } |