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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 8d982475f18c66f7b1d5e4d3677d479a8ec81781 Mon Sep 17 00:00:00 2001
From: Shivananda Hebbar <x0hebbar@xxxxxx>
Date: Fri, 9 Apr 2010 11:08:36 -0500
Subject: [PATCH] DSPBRIDGE: Cleanup custom error code (DSP_ESTRMMODE -> -EPERM)

This patch replaces DSP_ESTRMMODE with -EPERM

Signed-off-by: Shivananda Hebbar <x0hebbar@xxxxxx>
---
 arch/arm/plat-omap/include/dspbridge/errbase.h |    3 ---
 drivers/dsp/bridge/rmgr/node.c                 |    2 +-
 2 files changed, 1 insertions(+), 4 deletions(-)

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))
-- 
1.6.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux