From: Sunmi Lee Date: Thu, 7 Jun 2018 06:58:54 +0000 (+0900) Subject: [COMMON] fimc-is2: Fix a bugs of setting efd address for DDK X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5cc3716fb9ca418324d14e9b93953e379f384cbe;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: Fix a bugs of setting efd address for DDK Change-Id: I5b11a36d6ca6d3a2e998b0fd5830145a1b44aa80 Signed-off-by: Sunmi Lee --- diff --git a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-3aa.c b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-3aa.c index a53c42667170..86232219e79b 100644 --- a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-3aa.c +++ b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-3aa.c @@ -405,7 +405,7 @@ static int fimc_is_hw_3aa_shot(struct fimc_is_hw_ip *hw_ip, struct fimc_is_frame } if (param_set->dma_output_efd.cmd != DMA_OUTPUT_COMMAND_DISABLE) { - for (i = 0; i < frame->planes; i++) { + for (i = 0; i < param->efd_output.plane; i++) { param_set->output_dva_efd[i] = frame->shot->uctl.scalerUd.efdTargetAddress[i]; if (frame->shot->uctl.scalerUd.efdTargetAddress[i] == 0) { msinfo_hw("[F:%d]efdTargetAddress[%d] is zero\n",