From patchwork Thu Jun 3 05:47:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: omar ramirez X-Patchwork-Id: 103995 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 o535umLL018571 for ; Thu, 3 Jun 2010 05:56:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932686Ab0FCF4q (ORCPT ); Thu, 3 Jun 2010 01:56:46 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:39724 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754207Ab0FCF4V (ORCPT ); Thu, 3 Jun 2010 01:56:21 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o535uHve005067 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Jun 2010 00:56:17 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o535uEnM025466; Thu, 3 Jun 2010 00:56:14 -0500 (CDT) Received: from localhost (bacab.am.dhcp.ti.com [128.247.77.143]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o535uDP27870; Thu, 3 Jun 2010 00:56:13 -0500 (CDT) From: Omar Ramirez Luna To: linux-omap Cc: Omar Ramirez Luna , Shivananda Hebbar , Hiroshi DOYU , Fernando Guzman Lugo , Ivan Gomez Castellanos , Ernesto Ramos , Armando Uribe De Leon , Ameya Palande , Felipe Contreras Subject: [PATCH 24/40] DSPBRIDGE: err code replace DSP_ENOSECT with ENXIO Date: Thu, 3 Jun 2010 00:47:37 -0500 Message-Id: <1275544073-20418-25-git-send-email-omar.ramirez@ti.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1275544073-20418-1-git-send-email-omar.ramirez@ti.com> References: <1275544073-20418-1-git-send-email-omar.ramirez@ti.com> 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, 03 Jun 2010 05:56:49 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/dspbridge/dblldefs.h b/arch/arm/plat-omap/include/dspbridge/dblldefs.h index 18a862f..e780e87 100644 --- a/arch/arm/plat-omap/include/dspbridge/dblldefs.h +++ b/arch/arm/plat-omap/include/dspbridge/dblldefs.h @@ -299,7 +299,7 @@ typedef bool(*dbll_get_c_addr_fxn) (struct dbll_library_obj *lib, char *name, * psize - Location to store section size on output. * Returns: * 0: Success. - * DSP_ENOSECT: Section not found. + * -ENXIO: Section not found. * Requires: * DBL initialized. * Valid lib. @@ -359,7 +359,7 @@ typedef dsp_status(*dbll_load_fxn) (struct dbll_library_obj *lib, * attrs - Contains write function and handle to pass to it. * Returns: * 0: Success. - * DSP_ENOSECT: Section not found. + * -ENXIO: Section not found. * DSP_EFWRITE: Write function failed. * -ENOSYS: Function not implemented. * Requires: @@ -412,7 +412,7 @@ typedef dsp_status(*dbll_open_fxn) (struct dbll_tar_obj *target, char *file, * size - Buffer size * Returns: * 0: Success. - * DSP_ENOSECT: Named section does not exists. + * -ENXIO: Named section does not exists. * Requires: * DBL initialized. * Valid lib. @@ -465,7 +465,7 @@ typedef void (*dbll_unload_fxn) (struct dbll_library_obj *library, * attrs - Contains free() function and handle to pass to it. * Returns: * 0: Success. - * DSP_ENOSECT: Named section not found. + * -ENXIO: Named section not found. * -ENOSYS * Requires: * DBL initialized. diff --git a/drivers/dsp/bridge/pmgr/dbll.c b/drivers/dsp/bridge/pmgr/dbll.c index 6a01f56..8e76bf6 100644 --- a/drivers/dsp/bridge/pmgr/dbll.c +++ b/drivers/dsp/bridge/pmgr/dbll.c @@ -419,7 +419,7 @@ dsp_status dbll_get_sect(struct dbll_library_obj *lib, char *name, u32 *paddr, /* Align size */ *psize = DOFF_ALIGN(*psize); } else { - status = DSP_ENOSECT; + status = -ENXIO; } } if (opened_doff) { @@ -764,7 +764,7 @@ dsp_status dbll_read_sect(struct dbll_library_obj *lib, char *name, byte_size = 1; if (!dload_get_section_info(zl_lib->desc, name, §)) { - status = DSP_ENOSECT; + status = -ENXIO; goto func_cont; } /*