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

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

 



>From 045a98ee10ecfd8ef28dccb23918af92cbeb1bf3 Mon Sep 17 00:00:00 2001
From: Shivananda Hebbar <x0hebbar@xxxxxx>
Date: Fri, 9 Apr 2010 11:03:16 -0500
Subject: [PATCH] DSPBRIDGE: Cleanup custom error code (DSP_EALIGNMENT -> -EPERM)

This patch replaces DSP_ALIGNMENT 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 c9316ac..46fa77e 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 alignment */
-#define DSP_EALIGNMENT               (DSP_EBASE + 0x39)
-
 /* Invalid stream mode */
 #define DSP_ESTRMMODE               (DSP_EBASE + 0x3a)
 
diff --git a/drivers/dsp/bridge/rmgr/node.c b/drivers/dsp/bridge/rmgr/node.c
index c50ac1b..871cd13 100644
--- a/drivers/dsp/bridge/rmgr/node.c
+++ b/drivers/dsp/bridge/rmgr/node.c
@@ -741,7 +741,7 @@ DBAPI node_alloc_msg_buf(struct node_object *hnode, u32 usize,
 			break;
 		default:
 			/* alignment value not suportted */
-			status = DSP_EALIGNMENT;
+			status = -EPERM;
 			break;
 		}
 		if (DSP_SUCCEEDED(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