[COMMON] fimc-is2: Moved the position of assignment of variable
authorSunmi Lee <carrotsm.lee@samsung.com>
Fri, 29 Jun 2018 06:36:46 +0000 (15:36 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:06:04 +0000 (17:06 +0900)
The hw_mcsc is moved to more proper position.

Change-Id: Id86e5181e9cc687913ae1f1078d8dc83aa79401d
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c

index a691af5c924155c19514315e6b74a6129e3332c6..b2bd042020fc5b2d329bffc8c30bd6badfc7a8db 100644 (file)
@@ -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);