drm/meson: Fix plane atomic check when no crtc for the plane
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 2 Jan 2017 15:09:59 +0000 (16:09 +0100)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 20 Jul 2017 09:26:25 +0000 (02:26 -0700)
commit4a8833fdc521c1ebf287c377bc6ca188cb4d3571
treebe5d430ac5fb60dc87015cc07083990d3d94225d
parent489d1291f2fa66177b1597e7dae18887968e599a
drm/meson: Fix plane atomic check when no crtc for the plane

PD#147238: enable DRM driver on kernel 4.9
When no CRTC is associated with the plane, the meson_plane_atomic_check()
call breaks the kernel with an Oops.

Change-Id: I9d31c405316460420c0ed56dfcb0fc4ef6f86938
Fixes: bbbe775ec5b5 ("drm: Add support for Amlogic Meson Graphic Controller")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/gpu/drm/meson/meson_plane.c