From patchwork Thu Mar 25 20:06:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hebbar, Shivananda" X-Patchwork-Id: 88322 X-Patchwork-Delegate: omar.ramirez@ti.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2PK6Q3Z021290 for ; Thu, 25 Mar 2010 20:06:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754692Ab0CYUGv (ORCPT ); Thu, 25 Mar 2010 16:06:51 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:42906 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754667Ab0CYUGu convert rfc822-to-8bit (ORCPT ); Thu, 25 Mar 2010 16:06:50 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o2PK6fjZ007900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 25 Mar 2010 15:06:43 -0500 Received: from dbde71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id o2PK6ebb027630; Fri, 26 Mar 2010 01:36:40 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde71.ent.ti.com ([172.24.170.149]) with mapi; Fri, 26 Mar 2010 01:36:40 +0530 From: "Hebbar, Shivananda" To: "linux-omap@vger.kernel.org" CC: "Ramirez Luna, Omar" , Felipe Contreras , "Palande Ameya (Nokia-D/Helsinki)" , "Menon, Nishanth" Date: Fri, 26 Mar 2010 01:36:38 +0530 Subject: [RFC][PATCH 9/19] DSPBRIDGE: Cleanup custom error code (DSP_EFOPEN -> EBADF) Thread-Topic: [RFC][PATCH 9/19] DSPBRIDGE: Cleanup custom error code (DSP_EFOPEN -> EBADF) Thread-Index: AcrMVq2em7RjHzujQV2XqfzFi3x6gg== Message-ID: <19F8576C6E063C45BE387C64729E7394044DEBEB25@dbde02.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 25 Mar 2010 20:06:51 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/dspbridge/dblldefs.h b/arch/arm/plat-omap/include/dspbridge/dblldefs.h index 0ebdd6a..10b3e40 100644 --- a/arch/arm/plat-omap/include/dspbridge/dblldefs.h +++ b/arch/arm/plat-omap/include/dspbridge/dblldefs.h @@ -385,7 +385,7 @@ typedef dsp_status(*dbll_load_sect_fxn) (struct dbll_library_obj *lib, * Returns: * DSP_SOK: Success. * ENOMEM: Memory allocation failure. - * DSP_EFOPEN: File open failure. + * EBADF: File open failure. * DSP_EFREAD: File read failure. * DSP_ECORRUPTFILE: Unable to determine target type. * Requires: diff --git a/arch/arm/plat-omap/include/dspbridge/errbase.h b/arch/arm/plat-omap/include/dspbridge/errbase.h index 09ae0c6..aa848c8 100644 --- a/arch/arm/plat-omap/include/dspbridge/errbase.h +++ b/arch/arm/plat-omap/include/dspbridge/errbase.h @@ -192,9 +192,6 @@ /* Unable to find a named section in DSP executable */ #define DSP_ENOSECT (DSP_EBASE + 0x32) -/* Unable to open file */ -#define DSP_EFOPEN (DSP_EBASE + 0x33) - /* Unable to read file */ #define DSP_EFREAD (DSP_EBASE + 0x34) diff --git a/drivers/dsp/bridge/pmgr/dbll.c b/drivers/dsp/bridge/pmgr/dbll.c index 25b0c6e..5f0a9b9 100644 --- a/drivers/dsp/bridge/pmgr/dbll.c +++ b/drivers/dsp/bridge/pmgr/dbll.c @@ -915,10 +915,10 @@ static dsp_status dof_open(struct dbll_library_obj *zl_lib) if (zl_lib->desc == NULL) { (zl_lib->target_obj->attrs.fclose) (zl_lib->fp); zl_lib->fp = NULL; - status = DSP_EFOPEN; + status = EBADF; } } else { - status = DSP_EFOPEN; + status = EBADF; } return status;