mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
hdmitx: fix a resmue panic isse [1/1]
PD#SWPL-3188 Problem: When HDMI cable is not connected(that is CVBS out), and system may be panic after resume. Solution: Add NULL pointer protection check Verify: P212 Change-Id: I60818faaf7049667501e31990fa557b754ea7f1b Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
This commit is contained in:
committed by
Dongjin Kim
parent
cb5d05f5bb
commit
ef4d350f33
@@ -165,7 +165,7 @@ static void hdmitx_late_resume(struct early_suspend *h)
|
||||
if (phdmi->hdmitx_clk_tree.hdmi_clk_vpu != NULL)
|
||||
clk_prepare_enable(phdmi->hdmitx_clk_tree.hdmi_clk_vpu);
|
||||
|
||||
if (hdmitx_is_hdmi_vmode(info->name) == 1)
|
||||
if (info && (hdmitx_is_hdmi_vmode(info->name) == 1))
|
||||
phdmi->HWOp.CntlMisc(&hdmitx_device, MISC_HPLL_FAKE, 0);
|
||||
|
||||
phdmi->hpd_lock = 0;
|
||||
|
||||
Reference in New Issue
Block a user