HDMI: fix crash error when insert HDMI with following log:
authorZheng Yang <zhengyang@rock-chips.com>
Sun, 29 Mar 2015 09:28:18 +0000 (17:28 +0800)
committerZheng Yang <zhengyang@rock-chips.com>
Sun, 29 Mar 2015 09:28:18 +0000 (17:28 +0800)
commit3fe08a661c106d071afb45ddf3660c2e92fe8b52
tree14c4c04bd2300e5c42db19164a0eb4159b3127ac
parentbaf374531b7f18256e2961f86cf260ce278b963e
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>
drivers/video/rockchip/hdmi/rockchip-hdmi-core.c