From: Evoke Zhang Date: Thu, 1 Feb 2018 16:24:35 +0000 (+0800) Subject: vout: add missed vout2_module macro definition protection X-Git-Tag: khadas-vims-v0.9.6-release~2450 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a417167224c9a18f22b5390c0e662ff1a75bc3f0;p=platform%2Fkernel%2Flinux-amlogic.git vout: add missed vout2_module macro definition protection PD#156734: vout: add missed vout2_module macro definition protection Change-Id: I141d05ec9f40e4b42eb39b72d069907aa4480a99 Signed-off-by: Evoke Zhang --- diff --git a/drivers/amlogic/media/vout/vout_serve/vout_func.c b/drivers/amlogic/media/vout/vout_serve/vout_func.c index 425d4c5..3bea5c0 100644 --- a/drivers/amlogic/media/vout/vout_serve/vout_func.c +++ b/drivers/amlogic/media/vout/vout_serve/vout_func.c @@ -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)