浏览代码

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 <[email protected]>
Priyanka Gujjula 3 年之前
父节点
当前提交
6eacf50e78
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. 5 6
      driver/vidc/src/msm_vidc_platform.c

+ 5 - 6
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;
 }