aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge/rmgr/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/tidspbridge/rmgr/proc.c')
-rw-r--r--drivers/staging/tidspbridge/rmgr/proc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/proc.c b/drivers/staging/tidspbridge/rmgr/proc.c
index aa48fa8502b..9ed42eb444f 100644
--- a/drivers/staging/tidspbridge/rmgr/proc.c
+++ b/drivers/staging/tidspbridge/rmgr/proc.c
@@ -108,7 +108,7 @@ static u32 refs;
108DEFINE_MUTEX(proc_lock); /* For critical sections */ 108DEFINE_MUTEX(proc_lock); /* For critical sections */
109 109
110/* ----------------------------------- Function Prototypes */ 110/* ----------------------------------- Function Prototypes */
111static int proc_monitor(struct proc_object *hprocessor); 111static int proc_monitor(struct proc_object *proc_obj);
112static s32 get_envp_count(char **envp); 112static s32 get_envp_count(char **envp);
113static char **prepend_envp(char **new_envp, char **envp, s32 envp_elems, 113static char **prepend_envp(char **new_envp, char **envp, s32 envp_elems,
114 s32 cnew_envp, char *sz_var); 114 s32 cnew_envp, char *sz_var);
@@ -1788,32 +1788,32 @@ func_end:
1788 * Ensures: 1788 * Ensures:
1789 * Success: ProcObject state is PROC_IDLE 1789 * Success: ProcObject state is PROC_IDLE
1790 */ 1790 */
1791static int proc_monitor(struct proc_object *p_proc_object) 1791static int proc_monitor(struct proc_object *proc_obj)
1792{ 1792{
1793 int status = -EPERM; 1793 int status = -EPERM;
1794 struct msg_mgr *hmsg_mgr; 1794 struct msg_mgr *hmsg_mgr;
1795 int brd_state; 1795 int brd_state;
1796 1796
1797 DBC_REQUIRE(refs > 0); 1797 DBC_REQUIRE(refs > 0);
1798 DBC_REQUIRE(p_proc_object); 1798 DBC_REQUIRE(proc_obj);
1799 1799
1800 /* This is needed only when Device is loaded when it is 1800 /* This is needed only when Device is loaded when it is
1801 * already 'ACTIVE' */ 1801 * already 'ACTIVE' */
1802 /* Destory the Node Manager, msg_ctrl Manager */ 1802 /* Destory the Node Manager, msg_ctrl Manager */
1803 if (DSP_SUCCEEDED(dev_destroy2(p_proc_object->hdev_obj))) { 1803 if (DSP_SUCCEEDED(dev_destroy2(proc_obj->hdev_obj))) {
1804 /* Destroy the msg_ctrl by calling msg_delete */ 1804 /* Destroy the msg_ctrl by calling msg_delete */
1805 dev_get_msg_mgr(p_proc_object->hdev_obj, &hmsg_mgr); 1805 dev_get_msg_mgr(proc_obj->hdev_obj, &hmsg_mgr);
1806 if (hmsg_mgr) { 1806 if (hmsg_mgr) {
1807 msg_delete(hmsg_mgr); 1807 msg_delete(hmsg_mgr);
1808 dev_set_msg_mgr(p_proc_object->hdev_obj, NULL); 1808 dev_set_msg_mgr(proc_obj->hdev_obj, NULL);
1809 } 1809 }
1810 } 1810 }
1811 /* Place the Board in the Monitor State */ 1811 /* Place the Board in the Monitor State */
1812 if (DSP_SUCCEEDED((*p_proc_object->intf_fxns->pfn_brd_monitor) 1812 if (DSP_SUCCEEDED((*proc_obj->intf_fxns->pfn_brd_monitor)
1813 (p_proc_object->hbridge_context))) { 1813 (proc_obj->hbridge_context))) {
1814 status = 0; 1814 status = 0;
1815 if (DSP_SUCCEEDED((*p_proc_object->intf_fxns->pfn_brd_status) 1815 if (DSP_SUCCEEDED((*proc_obj->intf_fxns->pfn_brd_status)
1816 (p_proc_object->hbridge_context, &brd_state))) 1816 (proc_obj->hbridge_context, &brd_state)))
1817 DBC_ASSERT(brd_state == BRD_IDLE); 1817 DBC_ASSERT(brd_state == BRD_IDLE);
1818 } 1818 }
1819 1819