From 8f3e07f352924d91ca86b00fdbb64e4b22e45c32 Mon Sep 17 00:00:00 2001 From: Eunyoung Lee Date: Mon, 14 May 2018 20:39:25 +0900 Subject: [PATCH] [COMMON] fimc-is2: fixed compile error for PDP_STAT_DMA. - In Ramen, CSIS_STAT_DMA HW is not supported. Change-Id: I691d7c05727de37b11fcabb1419da17496d33e4b Signed-off-by: Eunyoung Lee --- .../media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c b/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c index 46b43c8c7b76..5476b555defd 100644 --- a/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c +++ b/drivers/media/platform/exynos/fimc-is2/fimc-is-device-csi_v4.c @@ -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); -- 2.20.1