summaryrefslogtreecommitdiff
path: root/drivers/staging/tidspbridge/rmgr/dspdrv.c
diff options
context:
space:
mode:
authorErnesto Ramos <ernesto@ti.com>2010-07-28 14:45:31 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-28 15:22:43 (GMT)
commitb66e0986f900db194f637149e68c00345863195b (patch)
tree9890662fe9573f1e872604dc3acd5015925820ab /drivers/staging/tidspbridge/rmgr/dspdrv.c
parent51d5e099cc9a21960e59bcaee6cc5e2620ea6bb2 (diff)
downloadlinux-fsl-qoriq-b66e0986f900db194f637149e68c00345863195b.tar.xz
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/dspdrv.c')
-rw-r--r--drivers/staging/tidspbridge/rmgr/dspdrv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/dspdrv.c b/drivers/staging/tidspbridge/rmgr/dspdrv.c
index 0a10d88..714f348 100644
--- a/drivers/staging/tidspbridge/rmgr/dspdrv.c
+++ b/drivers/staging/tidspbridge/rmgr/dspdrv.c
@@ -56,7 +56,7 @@ u32 dsp_init(u32 *init_status)
goto func_cont;
status = drv_create(&drv_obj);
- if (DSP_FAILED(status)) {
+ if (status) {
api_exit();
goto func_cont;
}
@@ -68,7 +68,7 @@ u32 dsp_init(u32 *init_status)
/* Attempt to Start the Device */
status = dev_start_device((struct cfg_devnode *)
device_node_string);
- if (DSP_FAILED(status))
+ if (status)
(void)drv_release_resources
((u32) device_node_string, drv_obj);
} else {
@@ -77,7 +77,7 @@ u32 dsp_init(u32 *init_status)
}
/* Unwind whatever was loaded */
- if (DSP_FAILED(status)) {
+ if (status) {
/* irrespective of the status of dev_remove_device we conitinue
* unloading. Get the Driver Object iterate through and remove.
* Reset the status to E_FAIL to avoid going through
@@ -106,7 +106,7 @@ func_cont:
dev_dbg(bridge, "%s: Failed\n", __func__);
} /* End api_init_complete2 */
DBC_ENSURE((!status && drv_obj != NULL) ||
- (DSP_FAILED(status) && drv_obj == NULL));
+ (status && drv_obj == NULL));
*init_status = status;
/* Return the Driver Object */
return (u32) drv_obj;