avin_detect: fix avin_detect_flag mistak in probe [1/1]
authorEvoke Zhang <evoke.zhang@amlogic.com>
Fri, 26 Jul 2019 10:39:26 +0000 (18:39 +0800)
committerEvoke Zhang <evoke.zhang@amlogic.com>
Fri, 26 Jul 2019 10:39:31 +0000 (18:39 +0800)
PD#TV-7797

Problem:
cat detect avin signal

Solution:
fix avin_detect_flag in probe

Verify:
x301

Change-Id: I2ee1f7fa243d31262f4e156e84e63440fe812c09
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
drivers/amlogic/media/vin/tvin/tvafe/tvafe_avin_detect.c

index c3bbff0..a839431 100644 (file)
@@ -1108,7 +1108,7 @@ static int tvafe_avin_detect_probe(struct platform_device *pdev)
                                (TVAFE_AVIN_INTERVAL * avin_timer_time);
        add_timer(&avin_detect_timer);
 
-       avin_detect_flag = AVIN_DETECT_INIT;
+       avin_detect_flag |= AVIN_DETECT_INIT;
        tvafe_pr_info("tvafe_avin_detect_probe ok.\n");
 
        return 0;