drm/mediatek: fix null pointer dereference
authorMatthias Brugger <matthias.bgg@gmail.com>
Fri, 18 Nov 2016 10:06:10 +0000 (11:06 +0100)
committerCK Hu <ck.hu@mediatek.com>
Thu, 24 Nov 2016 06:53:15 +0000 (14:53 +0800)
commit5ad45307d990020b25a8f7486178b6e033790f70
tree16f34af8e621e75a30967825705e0252f4946e8f
parentf6c872397028837c80685ee96c4011c62abe9a73
drm/mediatek: fix null pointer dereference

The probe function requests the interrupt before initializing
the ddp component. Which leads to a null pointer dereference at boot.
Fix this by requesting the interrput after all components got
initialized properly.

Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC
MT8173.")
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Change-Id: I57193a7ab554dfb37c35a455900689333adf511c
drivers/gpu/drm/mediatek/mtk_disp_ovl.c