diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2012-03-08 19:03:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-09 16:21:06 -0500 |
commit | 18ff159260bac8b62bc12bcdfe2aaf1eeb1f2b42 (patch) | |
tree | e23287e3527473dd53a880986fca9e2df19eb2a0 /drivers/staging/tidspbridge/rmgr | |
parent | 02a63f9dbc4fec17e441206ddcc2327242fac3fc (diff) |
staging: tidspbridge: remove node_init() and node_exit()
The node module has a node_init() and a node_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/rmgr')
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/node.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/node.c b/drivers/staging/tidspbridge/rmgr/node.c index 1b24589847f..908cd1e761c 100644 --- a/drivers/staging/tidspbridge/rmgr/node.c +++ b/drivers/staging/tidspbridge/rmgr/node.c | |||
@@ -261,8 +261,6 @@ static u32 ovly(void *priv_ref, u32 dsp_run_addr, u32 dsp_load_addr, | |||
261 | static u32 mem_write(void *priv_ref, u32 dsp_add, void *pbuf, | 261 | static u32 mem_write(void *priv_ref, u32 dsp_add, void *pbuf, |
262 | u32 ul_num_bytes, u32 mem_space); | 262 | u32 ul_num_bytes, u32 mem_space); |
263 | 263 | ||
264 | static u32 refs; /* module reference count */ | ||
265 | |||
266 | /* Dynamic loader functions. */ | 264 | /* Dynamic loader functions. */ |
267 | static struct node_ldr_fxns nldr_fxns = { | 265 | static struct node_ldr_fxns nldr_fxns = { |
268 | nldr_allocate, | 266 | nldr_allocate, |
@@ -1569,16 +1567,6 @@ func_end: | |||
1569 | } | 1567 | } |
1570 | 1568 | ||
1571 | /* | 1569 | /* |
1572 | * ======== node_exit ======== | ||
1573 | * Purpose: | ||
1574 | * Discontinue usage of NODE module. | ||
1575 | */ | ||
1576 | void node_exit(void) | ||
1577 | { | ||
1578 | refs--; | ||
1579 | } | ||
1580 | |||
1581 | /* | ||
1582 | * ======== node_free_msg_buf ======== | 1570 | * ======== node_free_msg_buf ======== |
1583 | * Purpose: | 1571 | * Purpose: |
1584 | * Frees the message buffer. | 1572 | * Frees the message buffer. |
@@ -1852,18 +1840,6 @@ enum node_type node_get_type(struct node_object *hnode) | |||
1852 | } | 1840 | } |
1853 | 1841 | ||
1854 | /* | 1842 | /* |
1855 | * ======== node_init ======== | ||
1856 | * Purpose: | ||
1857 | * Initialize the NODE module. | ||
1858 | */ | ||
1859 | bool node_init(void) | ||
1860 | { | ||
1861 | refs++; | ||
1862 | |||
1863 | return true; | ||
1864 | } | ||
1865 | |||
1866 | /* | ||
1867 | * ======== node_on_exit ======== | 1843 | * ======== node_on_exit ======== |
1868 | * Purpose: | 1844 | * Purpose: |
1869 | * Gets called when RMS_EXIT is received for a node. | 1845 | * Gets called when RMS_EXIT is received for a node. |