aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge/rmgr/drv_interface.c
diff options
context:
space:
mode:
authorErnesto Ramos <ernesto@ti.com>2010-07-28 09:45:31 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-28 08:22:43 -0700
commitb66e0986f900db194f637149e68c00345863195b (patch)
tree9890662fe9573f1e872604dc3acd5015925820ab /drivers/staging/tidspbridge/rmgr/drv_interface.c
parent51d5e099cc9a21960e59bcaee6cc5e2620ea6bb2 (diff)
downloadkernel_samsung_smdk4412-b66e0986f900db194f637149e68c00345863195b.zip
kernel_samsung_smdk4412-b66e0986f900db194f637149e68c00345863195b.tar.gz
kernel_samsung_smdk4412-b66e0986f900db194f637149e68c00345863195b.tar.bz2
staging:ti dspbridge: remove DSP_FAILED macro from rmgr
Since status succeeded is 0, DSP_FAILED macro is not necessary anymore. Signed-off-by: Ernesto Ramos <ernesto@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/tidspbridge/rmgr/drv_interface.c')
-rw-r--r--drivers/staging/tidspbridge/rmgr/drv_interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/drv_interface.c b/drivers/staging/tidspbridge/rmgr/drv_interface.c
index b1dcf4a..aec7cf7 100644
--- a/drivers/staging/tidspbridge/rmgr/drv_interface.c
+++ b/drivers/staging/tidspbridge/rmgr/drv_interface.c
@@ -201,7 +201,7 @@ static void bridge_recover(struct work_struct *work)
}
dev = dev_get_first();
dev_get_dev_node(dev, &dev_node);
- if (!dev_node || DSP_FAILED(proc_auto_start(dev_node, dev)))
+ if (!dev_node || proc_auto_start(dev_node, dev))
pr_err("DSP could not be restarted\n");
recover = false;
complete_all(&bridge_open_comp);
@@ -397,7 +397,7 @@ static int __devexit omap34_xx_bridge_remove(struct platform_device *pdev)
void *hdrv_obj = NULL;
status = cfg_get_object((u32 *) &hdrv_obj, REG_DRV_OBJECT);
- if (DSP_FAILED(status))
+ if (status)
goto func_cont;
#ifdef CONFIG_TIDSPBRIDGE_DVFS
@@ -439,7 +439,7 @@ static int BRIDGE_SUSPEND(struct platform_device *pdev, pm_message_t state)
u32 command = PWR_EMERGENCYDEEPSLEEP;
status = pwr_sleep_dsp(command, time_out);
- if (DSP_FAILED(status))
+ if (status)
return -1;
bridge_suspend_data.suspended = 1;
@@ -451,7 +451,7 @@ static int BRIDGE_RESUME(struct platform_device *pdev)
u32 status;
status = pwr_wake_dsp(time_out);
- if (DSP_FAILED(status))
+ if (status)
return -1;
bridge_suspend_data.suspended = 0;