The gh module has a gh_init() and a gh_exit(), but they don't do
anything, they are just noops.
This patch removes these functions.
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>
        }
 }
 
-/*
- *  ======== gh_exit ========
- */
-
-void gh_exit(void)
-{
-       /* Do nothing */
-}
-
 /*
  *  ======== gh_find ========
  */
        return NULL;
 }
 
-/*
- *  ======== gh_init ========
- */
-
-void gh_init(void)
-{
-       /* Do nothing */
-}
-
 /*
  *  ======== gh_insert ========
  */
 
                                       bool(*match) (void *, void *),
                                       void (*delete) (void *));
 extern void gh_delete(struct gh_t_hash_tab *hash_tab);
-extern void gh_exit(void);
 extern void *gh_find(struct gh_t_hash_tab *hash_tab, void *key);
-extern void gh_init(void);
 extern void *gh_insert(struct gh_t_hash_tab *hash_tab, void *key, void *value);
 #ifdef CONFIG_TIDSPBRIDGE_BACKTRACE
 void gh_iterate(struct gh_t_hash_tab *hash_tab,
 
 static bool name_match(void *key, void *sp);
 static void sym_delete(void *value);
 
-static u32 refs;               /* module reference count */
-
 /* Symbol Redefinition */
 static int redefined_symbol;
 static int gbl_search = 1;
  */
 void dbll_exit(void)
 {
-       refs--;
-
-       if (refs == 0)
-               gh_exit();
+       /* do nothing */
 }
 
 /*
  */
 bool dbll_init(void)
 {
-       if (refs == 0)
-               gh_init();
-
-       refs++;
+       /* do nothing */
 
        return true;
 }