Replace DSP_EDCDNOAUTOREGISTER with EACCES Signed-off-by: Omar Ramirez Luna <omar.ramirez@xxxxxx> --- arch/arm/plat-omap/include/dspbridge/dbdcd.h | 6 +++--- drivers/dsp/bridge/rmgr/dbdcd.c | 2 +- drivers/dsp/bridge/rmgr/proc.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/plat-omap/include/dspbridge/dbdcd.h b/arch/arm/plat-omap/include/dspbridge/dbdcd.h index f7e4e79..17fb57a 100644 --- a/arch/arm/plat-omap/include/dspbridge/dbdcd.h +++ b/arch/arm/plat-omap/include/dspbridge/dbdcd.h @@ -34,7 +34,7 @@ * objects to be registered. * Returns: * 0: Success. - * DSP_EDCDNOAUTOREGISTER: Unable to find auto-registration section. + * -EACCES: Unable to find auto-registration section. * DSP_EDCDREADSECT: Unable to read object code section. * DSP_EDCDLOADBASE: Unable to load code base. * -EFAULT: Invalid DCD_HMANAGER handle.. @@ -60,7 +60,7 @@ extern dsp_status dcd_auto_register(IN struct dcd_manager *hdcd_mgr, * DCD objects to be unregistered. * Returns: * 0: Success. - * DSP_EDCDNOAUTOREGISTER: Unable to find auto-registration section. + * -EACCES: Unable to find auto-registration section. * DSP_EDCDREADSECT: Unable to read object code section. * DSP_EDCDLOADBASE: Unable to load code base. * -EFAULT: Invalid DCD_HMANAGER handle.. @@ -289,7 +289,7 @@ extern dsp_status dcd_get_object_def(IN struct dcd_manager *hdcd_mgr, * handle: Handle to pass to callback. * Returns: * 0: Success. - * DSP_EDCDNOAUTOREGISTER: Unable to find .dcd_register section. + * -EACCES: Unable to find .dcd_register section. * DSP_EDCDREADSECT: Unable to read object code section. * DSP_EDCDLOADBASE: Unable to load code base. * -EFAULT: Invalid DCD_HMANAGER handle.. diff --git a/drivers/dsp/bridge/rmgr/dbdcd.c b/drivers/dsp/bridge/rmgr/dbdcd.c index 1731334..dcca612 100644 --- a/drivers/dsp/bridge/rmgr/dbdcd.c +++ b/drivers/dsp/bridge/rmgr/dbdcd.c @@ -567,7 +567,7 @@ dsp_status dcd_get_objects(IN struct dcd_manager *hdcd_mgr, /* Get DCD_RESIGER_SECTION section information. */ status = cod_get_section(lib, DCD_REGISTER_SECTION, &ul_addr, &ul_len); if (DSP_FAILED(status) || !(ul_len > 0)) { - status = DSP_EDCDNOAUTOREGISTER; + status = -EACCES; goto func_cont; } diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c index 1f46f66..1afdff0 100644 --- a/drivers/dsp/bridge/rmgr/proc.c +++ b/drivers/dsp/bridge/rmgr/proc.c @@ -907,13 +907,13 @@ dsp_status proc_load(void *hprocessor, IN CONST s32 argc_index, if (DSP_SUCCEEDED(status)) { /* Auto register nodes in specified COFF * file. If registration did not fail, - * (status = 0 or DSP_EDCDNOAUTOREGISTER) + * (status = 0 or -EACCES) * save the name of the COFF file for * de-registration in the future. */ status = dcd_auto_register(hdcd_handle, (char *)user_args[0]); - if (status == DSP_EDCDNOAUTOREGISTER) + if (status == -EACCES) status = 0; if (DSP_FAILED(status)) { -- 1.7.1 -- 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