[COMMON] fimc-is2: fixed compile error for PDP_STAT_DMA.
authorEunyoung Lee <ey470.lee@samsung.com>
Mon, 14 May 2018 11:39:25 +0000 (20:39 +0900)
committerEunyoung Lee <ey470.lee@samsung.com>
Tue, 19 Jun 2018 08:47:00 +0000 (17:47 +0900)
- In Ramen, CSIS_STAT_DMA HW is not supported.

Change-Id: I691d7c05727de37b11fcabb1419da17496d33e4b
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c

index 46b43c8c7b76eda4688f7b47e915ea0f8583609b..5476b555defdf3b06e1bab22792d2f108699235b 100644 (file)
@@ -2043,6 +2043,7 @@ int fimc_is_csi_dma_probe(struct fimc_is_device_csi_dma *csi_dma, struct platfor
                goto err_get_base_csis_dma;
        }
 
+#if defined(ENABLE_PDP_STAT_DMA)
        mem_res = NULL;
        mem_res = platform_get_resource(pdev, IORESOURCE_MEM, IORESOURCE_STAT_DMA);
        if (!mem_res) {
@@ -2059,6 +2060,7 @@ int fimc_is_csi_dma_probe(struct fimc_is_device_csi_dma *csi_dma, struct platfor
                ret = -ENOMEM;
                goto err_get_base_stat_dma;
        }
+#endif
 
        atomic_set(&csi_dma->rcount, 0);
 
@@ -2066,8 +2068,10 @@ int fimc_is_csi_dma_probe(struct fimc_is_device_csi_dma *csi_dma, struct platfor
 
        return 0;
 
+#if defined(ENABLE_PDP_STAT_DMA)
 err_get_base_stat_dma:
 err_get_resource_stat_dma:
+#endif
 err_get_base_csis_dma:
 err_get_resource_csis_dma:
        err("[CSI:D] %s(%d)\n", __func__, ret);