vout: add missed vout2_module macro definition protection
authorEvoke Zhang <evoke.zhang@amlogic.com>
Thu, 1 Feb 2018 16:24:35 +0000 (00:24 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Mon, 5 Mar 2018 07:34:26 +0000 (15:34 +0800)
PD#156734: vout: add missed vout2_module macro definition protection

Change-Id: I141d05ec9f40e4b42eb39b72d069907aa4480a99
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
drivers/amlogic/media/vout/vout_serve/vout_func.c

index 425d4c5..3bea5c0 100644 (file)
@@ -349,8 +349,10 @@ int vout_func_vout_suspend(int index)
 
        if (index == 1)
                p_server = vout_module.curr_vout_server;
+#ifdef CONFIG_AMLOGIC_VOUT2_SERVE
        else if (index == 2)
                p_server = vout2_module.curr_vout_server;
+#endif
 
        if (!IS_ERR_OR_NULL(p_server)) {
                if (p_server->op.vout_suspend)