diff mbox

[RFC,6/13] DSPBRIDGE: Cleanup custom error code (DSP_ESTRMMODE -> -EPERM)

Message ID 19F8576C6E063C45BE387C64729E7394044E136FDD@dbde02.ent.ti.com (mailing list archive)
State Accepted
Delegated to:
Headers show

Commit Message

Hebbar, Shivananda April 15, 2010, 9:17 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/include/dspbridge/errbase.h b/arch/arm/plat-omap/include/dspbridge/errbase.h
index 46fa77e..06c6030 100644
--- a/arch/arm/plat-omap/include/dspbridge/errbase.h
+++ b/arch/arm/plat-omap/include/dspbridge/errbase.h
@@ -168,9 +168,6 @@ 
 /* Invalid segment ID */
 #define DSP_EBADSEGID               (DSP_EBASE + 0x38)
 
-/* Invalid stream mode */
-#define DSP_ESTRMMODE               (DSP_EBASE + 0x3a)
-
 /* Not shared memory */
 #define DSP_ENOTSHAREDMEM           (DSP_EBASE + 0x3c)
 
diff --git a/drivers/dsp/bridge/rmgr/node.c b/drivers/dsp/bridge/rmgr/node.c
index 871cd13..7f35052 100644
--- a/drivers/dsp/bridge/rmgr/node.c
+++ b/drivers/dsp/bridge/rmgr/node.c
@@ -901,7 +901,7 @@  dsp_status node_connect(struct node_object *hNode1, u32 uStream1,
 	 */
 	if (DSP_SUCCEEDED(status) && pattrs) {
 		if (pattrs->strm_mode != STRMMODE_PROCCOPY)
-			status = DSP_ESTRMMODE;	/* illegal stream mode */
+			status = -EPERM;	/* illegal stream mode */
 
 	}
 	if (DSP_FAILED(status))