HDMI: fix crash error when insert HDMI with following log:
Unable to handle kernel paging request at virtual address
40ce80f8
pgd =
ffffffc001022000
[
40ce80f8] *pgd=
0000000025b19003, *pmd=
000000001cb1f003, *pte=
0000000000000000
Internal error: Oops:
96000005 [#1] PREEMPT SMP
Modules linked in: pvrsrvkm(O) drmboot(PO)
CPU: 7 PID: 2558 Comm: kworker/u16:1 Tainted: P W O 3.10.0 #66
Workqueue: hdmi-
ff980000.hdmi hdmi_work_queue
task:
ffffffc01ca83f00 ti:
ffffffc033e00000 task.ti:
ffffffc033e00000
PC is at hdmi_wq_insert+0xa4/0x2ac
LR is at hdmi_wq_insert+0x74/0x2ac
pc : [<
ffffffc000341014>] lr : [<
ffffffc000340fe4>] pstate:
60000145
Use inline fuction hdmi_destroy_modelist replace fb_destroy_modelist.
For unkown reason, variable struct hdmi *hdmi is deferent before and
after calling fb_destroy_modelist.
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>