From 6eacf50e785bdee34066107027ffffda2e5f6ffa Mon Sep 17 00:00:00 2001 From: Priyanka Gujjula Date: Wed, 17 Nov 2021 17:44:00 +0530 Subject: [PATCH] video-driver: Fix compilation errors for parrot Fix compilation errors on parrot which has a different lunch combo other than taro/diwali. Change-Id: I35aee69bc8e18d50395a01b97d282c21e75da193 Signed-off-by: Priyanka Gujjula --- driver/vidc/src/msm_vidc_platform.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/driver/vidc/src/msm_vidc_platform.c b/driver/vidc/src/msm_vidc_platform.c index d976f75550..7872470440 100644 --- a/driver/vidc/src/msm_vidc_platform.c +++ b/driver/vidc/src/msm_vidc_platform.c @@ -9,6 +9,7 @@ #include "msm_vidc_v4l2.h" #include "msm_vidc_vb2.h" #include "msm_vidc_control.h" +#include "msm_vidc_core.h" #if defined(CONFIG_MSM_VIDC_WAIPIO) #include "msm_vidc_waipio.h" #endif @@ -159,7 +160,7 @@ static int msm_vidc_deinit_platform_variant(struct msm_vidc_core *core, struct d if (rc) d_vpr_e("%s: failed msm-vidc-waipio with %d\n", __func__, rc); - goto end_target_config; + return rc; } #endif #if defined(CONFIG_MSM_VIDC_DIWALI) @@ -168,11 +169,10 @@ static int msm_vidc_deinit_platform_variant(struct msm_vidc_core *core, struct d if (rc) d_vpr_e("%s: failed msm-vidc-diwali with %d\n", __func__, rc); - goto end_target_config; + return rc; } #endif -end_target_config: return rc; } @@ -193,7 +193,7 @@ static int msm_vidc_init_platform_variant(struct msm_vidc_core *core, struct dev if (rc) d_vpr_e("%s: failed msm-vidc-waipio with %d\n", __func__, rc); - goto end_target_config; + return rc; } #endif #if defined(CONFIG_MSM_VIDC_DIWALI) @@ -202,11 +202,10 @@ static int msm_vidc_init_platform_variant(struct msm_vidc_core *core, struct dev if (rc) d_vpr_e("%s: failed msm-vidc-diwali with %d\n", __func__, rc); - goto end_target_config; + return rc; } #endif -end_target_config: return rc; }