diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2012-03-08 19:03:38 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-09 16:21:06 -0500 |
commit | 02a63f9dbc4fec17e441206ddcc2327242fac3fc (patch) | |
tree | 12dc29ac483a8fa72abbbc6106b96d7d3dcee080 /drivers/staging/tidspbridge/rmgr | |
parent | d4040fadc0b8bc109268cf278bab6f2132e7ab0f (diff) |
staging: tidspbridge: remove proc_init() and proc_exit()
The proc module has a proc_init() and a proc_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/proc.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/proc.c b/drivers/staging/tidspbridge/rmgr/proc.c index b865d64234a..7e4f12f6be4 100644 --- a/drivers/staging/tidspbridge/rmgr/proc.c +++ b/drivers/staging/tidspbridge/rmgr/proc.c | |||
@@ -98,8 +98,6 @@ struct proc_object { | |||
98 | struct list_head proc_list; | 98 | struct list_head proc_list; |
99 | }; | 99 | }; |
100 | 100 | ||
101 | static u32 refs; | ||
102 | |||
103 | DEFINE_MUTEX(proc_lock); /* For critical sections */ | 101 | DEFINE_MUTEX(proc_lock); /* For critical sections */ |
104 | 102 | ||
105 | /* ----------------------------------- Function Prototypes */ | 103 | /* ----------------------------------- Function Prototypes */ |
@@ -909,17 +907,6 @@ func_end: | |||
909 | } | 907 | } |
910 | 908 | ||
911 | /* | 909 | /* |
912 | * ======== proc_exit ======== | ||
913 | * Purpose: | ||
914 | * Decrement reference count, and free resources when reference count is | ||
915 | * 0. | ||
916 | */ | ||
917 | void proc_exit(void) | ||
918 | { | ||
919 | refs--; | ||
920 | } | ||
921 | |||
922 | /* | ||
923 | * ======== proc_get_dev_object ======== | 910 | * ======== proc_get_dev_object ======== |
924 | * Purpose: | 911 | * Purpose: |
925 | * Return the Dev Object handle for a given Processor. | 912 | * Return the Dev Object handle for a given Processor. |
@@ -1010,21 +997,6 @@ int proc_get_trace(void *hprocessor, u8 * pbuf, u32 max_size) | |||
1010 | } | 997 | } |
1011 | 998 | ||
1012 | /* | 999 | /* |
1013 | * ======== proc_init ======== | ||
1014 | * Purpose: | ||
1015 | * Initialize PROC's private state, keeping a reference count on each call | ||
1016 | */ | ||
1017 | bool proc_init(void) | ||
1018 | { | ||
1019 | bool ret = true; | ||
1020 | |||
1021 | if (ret) | ||
1022 | refs++; | ||
1023 | |||
1024 | return ret; | ||
1025 | } | ||
1026 | |||
1027 | /* | ||
1028 | * ======== proc_load ======== | 1000 | * ======== proc_load ======== |
1029 | * Purpose: | 1001 | * Purpose: |
1030 | * Reset a processor and load a new base program image. | 1002 | * Reset a processor and load a new base program image. |