Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289235
b: refs/heads/master
c: d111f6e
h: refs/heads/master
i:
  289233: 0476596
  289231: 275eed6
v: v3
  • Loading branch information
Víctor Manuel Jáquez Leal authored and Greg Kroah-Hartman committed Mar 9, 2012
1 parent 336e11f commit 4a69296
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 31 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 52041338797a9847f8482cfa2fc8d8c40c629c3a
refs/heads/master: d111f6e94da7cf26daee5ccc06406fd4ec904350
18 changes: 0 additions & 18 deletions trunk/drivers/staging/tidspbridge/gen/gh.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,6 @@ void gh_delete(struct gh_t_hash_tab *hash_tab)
}
}

/*
* ======== gh_exit ========
*/

void gh_exit(void)
{
/* Do nothing */
}

/*
* ======== gh_find ========
*/
Expand All @@ -121,15 +112,6 @@ void *gh_find(struct gh_t_hash_tab *hash_tab, void *key)
return NULL;
}

/*
* ======== gh_init ========
*/

void gh_init(void)
{
/* Do nothing */
}

/*
* ======== gh_insert ========
*/
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/tidspbridge/include/dspbridge/gh.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ extern struct gh_t_hash_tab *gh_create(u16 max_bucket, u16 val_size,
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,
Expand Down
12 changes: 2 additions & 10 deletions trunk/drivers/staging/tidspbridge/pmgr/dbll.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ static u16 name_hash(void *key, u16 max_bucket);
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;
Expand Down Expand Up @@ -268,10 +266,7 @@ void dbll_delete(struct dbll_tar_obj *target)
*/
void dbll_exit(void)
{
refs--;

if (refs == 0)
gh_exit();
/* do nothing */
}

/*
Expand Down Expand Up @@ -394,10 +389,7 @@ int dbll_get_sect(struct dbll_library_obj *lib, char *name, u32 *paddr,
*/
bool dbll_init(void)
{
if (refs == 0)
gh_init();

refs++;
/* do nothing */

return true;
}
Expand Down

0 comments on commit 4a69296

Please sign in to comment.