From patchwork Sat Mar 27 02:28:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hebbar, Shivananda" X-Patchwork-Id: 88663 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 o2R2SrnJ014991 for ; Sat, 27 Mar 2010 02:28:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752997Ab0C0C2Z (ORCPT ); Fri, 26 Mar 2010 22:28:25 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:52116 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752946Ab0C0C2P convert rfc822-to-8bit (ORCPT ); Fri, 26 Mar 2010 22:28:15 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o2R2SCsP011897 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 26 Mar 2010 21:28:15 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id o2R2SCH6026619 for ; Sat, 27 Mar 2010 07:58:12 +0530 (IST) Received: from dbde02.ent.ti.com ([172.24.170.145]) by dbde70.ent.ti.com ([172.24.170.148]) with mapi; Sat, 27 Mar 2010 07:58:12 +0530 From: "Hebbar, Shivananda" To: "linux-omap@vger.kernel.org" Date: Sat, 27 Mar 2010 07:58:10 +0530 Subject: [RFC][PATCH v1 9/19] DSPBRIDGE: Cleanup custom error code (DSP_EFOPEN ->- EBADF) Thread-Topic: [RFC][PATCH v1 9/19] DSPBRIDGE: Cleanup custom error code (DSP_EFOPEN ->- EBADF) Thread-Index: AcrNVSTAwKfFQau/TO+MTZOF3K/Bqw== Message-ID: <19F8576C6E063C45BE387C64729E7394044DEBEE0F@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]); Sat, 27 Mar 2010 02:28:54 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/dspbridge/dblldefs.h b/arch/arm/plat-omap/include/dspbridge/dblldefs.h index fce35ab..527d47e 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 8d6f9ea..5544029 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;