Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289223
b: refs/heads/master
c: 02a63f9
h: refs/heads/master
i:
  289221: 8a19350
  289219: fd3f382
  289215: 82849b4
v: v3
  • Loading branch information
Víctor Manuel Jáquez Leal authored and Greg Kroah-Hartman committed Mar 9, 2012
1 parent 17ff392 commit 6082f88
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 64 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: d4040fadc0b8bc109268cf278bab6f2132e7ab0f
refs/heads/master: 02a63f9dbc4fec17e441206ddcc2327242fac3fc
28 changes: 0 additions & 28 deletions trunk/drivers/staging/tidspbridge/include/dspbridge/proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,20 +188,6 @@ extern int proc_get_resource_info(void *hprocessor,
*resource_info,
u32 resource_info_size);

/*
* ======== proc_exit ========
* Purpose:
* Decrement reference count, and free resources when reference count is
* 0.
* Parameters:
* Returns:
* Requires:
* PROC is initialized.
* Ensures:
* When reference count == 0, PROC's private resources are freed.
*/
extern void proc_exit(void);

/*
* ======== proc_get_dev_object =========
* Purpose:
Expand All @@ -222,20 +208,6 @@ extern void proc_exit(void);
extern int proc_get_dev_object(void *hprocessor,
struct dev_object **device_obj);

/*
* ======== proc_init ========
* Purpose:
* Initialize PROC's private state, keeping a reference count on each
* call.
* Parameters:
* Returns:
* TRUE if initialized; FALSE if error occurred.
* Requires:
* Ensures:
* TRUE: A requirement for the other public PROC functions.
*/
extern bool proc_init(void);

/*
* ======== proc_get_state ========
* Purpose:
Expand Down
9 changes: 2 additions & 7 deletions trunk/drivers/staging/tidspbridge/pmgr/dspapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ void api_exit(void)
strm_exit();
disp_exit();
node_exit();
proc_exit();
mgr_exit();
rmm_exit();
}
Expand All @@ -289,12 +288,11 @@ bool api_init(void)
{
bool ret = true;
bool fdev, fchnl, fmsg, fio;
bool fmgr, fproc, fnode, fdisp, fstrm, frmm;
bool fmgr, fnode, fdisp, fstrm, frmm;

if (api_c_refs == 0) {
/* initialize driver and other modules */
fmgr = mgr_init();
fproc = proc_init();
fnode = node_init();
fdisp = disp_init();
fstrm = strm_init();
Expand All @@ -304,7 +302,7 @@ bool api_init(void)
fio = io_init();
fdev = dev_init();
ret = fdev && fchnl && fmsg && fio;
ret = ret && fmgr && fproc && frmm;
ret = ret && fmgr && frmm;
if (!ret) {

if (fmgr)
Expand All @@ -313,9 +311,6 @@ bool api_init(void)
if (fstrm)
strm_exit();

if (fproc)
proc_exit();

if (fnode)
node_exit();

Expand Down
28 changes: 0 additions & 28 deletions trunk/drivers/staging/tidspbridge/rmgr/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ struct proc_object {
struct list_head proc_list;
};

static u32 refs;

DEFINE_MUTEX(proc_lock); /* For critical sections */

/* ----------------------------------- Function Prototypes */
Expand Down Expand Up @@ -908,17 +906,6 @@ int proc_get_resource_info(void *hprocessor, u32 resource_type,
return status;
}

/*
* ======== proc_exit ========
* Purpose:
* Decrement reference count, and free resources when reference count is
* 0.
*/
void proc_exit(void)
{
refs--;
}

/*
* ======== proc_get_dev_object ========
* Purpose:
Expand Down Expand Up @@ -1009,21 +996,6 @@ int proc_get_trace(void *hprocessor, u8 * pbuf, u32 max_size)
return status;
}

/*
* ======== proc_init ========
* Purpose:
* Initialize PROC's private state, keeping a reference count on each call
*/
bool proc_init(void)
{
bool ret = true;

if (ret)
refs++;

return ret;
}

/*
* ======== proc_load ========
* Purpose:
Expand Down

0 comments on commit 6082f88

Please sign in to comment.