From: Sunmi Lee Date: Fri, 29 Jun 2018 06:36:46 +0000 (+0900) Subject: [COMMON] fimc-is2: Moved the position of assignment of variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=87ee11049c9a4afcd7b7b2c11b2d3c4b559f54aa;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: Moved the position of assignment of variable The hw_mcsc is moved to more proper position. Change-Id: Id86e5181e9cc687913ae1f1078d8dc83aa79401d Signed-off-by: Sunmi Lee --- diff --git a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c index a691af5c9241..b2bd042020fc 100644 --- a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c +++ b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c @@ -426,8 +426,6 @@ static int fimc_is_hw_mcsc_enable(struct fimc_is_hw_ip *hw_ip, u32 instance, ulo msdbg_hw(2, "enable: start, (0x%lx)\n", instance, hw_ip, mcsc_out_st); - mcs_param = &hw_ip->region[instance]->parameter.mcs; - spin_lock_irqsave(&mcsc_out_slock, flag); ret = fimc_is_hw_mcsc_reset(hw_ip); if (ret != 0) { @@ -445,6 +443,7 @@ static int fimc_is_hw_mcsc_enable(struct fimc_is_hw_ip *hw_ip, u32 instance, ulo msdbg_hw(2, "enable: done, (0x%lx)\n", instance, hw_ip, mcsc_out_st); + mcs_param = &hw_ip->region[instance]->parameter.mcs; fimc_is_hw_mcsc_tdnr_init(hw_ip, mcs_param, instance); set_bit(HW_RUN, &hw_ip->state);