Browse Source

msm: camera: cdm: Fix some issues in irq line test

This change fix unused error in cpas during compile when enable
CONFIG_CAM_TEST_IRQ_LINE and CONFIG_CAM_TEST_IRQ_LINE_AT_PROBE
issue, also fix can not find cdm irq line test interface when only
enable CONFIG_CAM_TEST_IRQ_LINE issue.

CRs-Fixed: 3169889
Change-Id: I673b150508d38bcf71ad33a5a9b38c6dff9a9578
Signed-off-by: zhuo <[email protected]>
zhuo 3 years ago
parent
commit
5246b7ef75
2 changed files with 1 additions and 2 deletions
  1. 1 1
      drivers/cam_cdm/cam_cdm_hw_core.c
  2. 0 1
      drivers/cam_cpas/cpas_top/cam_cpastop_hw.c

+ 1 - 1
drivers/cam_cdm/cam_cdm_hw_core.c

@@ -2209,7 +2209,7 @@ int cam_hw_cdm_deinit(void *hw_priv,
 	return rc;
 }
 
-#if (defined(CONFIG_CAM_TEST_IRQ_LINE) && defined(CONFIG_CAM_TEST_IRQ_LINE_AT_PROBE))
+#ifdef CONFIG_CAM_TEST_IRQ_LINE
 static int cam_cdm_test_irq_line(void *hw_priv)
 {
 	struct cam_hw_info *cdm_hw = hw_priv;

+ 0 - 1
drivers/cam_cpas/cpas_top/cam_cpastop_hw.c

@@ -611,7 +611,6 @@ static int cam_cpastop_reset_irq(struct cam_hw_info *cpas_hw)
 #if (defined(CONFIG_CAM_TEST_IRQ_LINE) && defined(CONFIG_CAM_TEST_IRQ_LINE_AT_PROBE))
 	static int counter;
 	bool wait_for_irq = false;
-	struct cam_cpas *cpas_core = (struct cam_cpas *) cpas_hw->core_info;
 
 	if (counter == 0)  {
 		CAM_INFO(CAM_CPAS, "Enabling camnoc test irq");