drm/fsl-dcu: handle missing panel gracefully
authorStefan Agner <stefan@agner.ch>
Thu, 3 Dec 2015 02:03:50 +0000 (18:03 -0800)
committerStefan Agner <stefan@agner.ch>
Tue, 26 Apr 2016 03:45:32 +0000 (20:45 -0700)
commitb7d11305b89a0d3d13d6087505daed94dde08574
treee022eb8e9e6d9aa147a607f83846f663507bf7ce
parenta109f66f4be771eba8df241f22da58323273c635
drm/fsl-dcu: handle missing panel gracefully

If the device tree property fsl,panel is missing, drm_panel_attach
is called with a NULL pointer as first argument. Having a panel is
basically mandatory since RGB is the only supported connector.
Check if a panel node has been found, return -ENODEV and cleanup
otherwise.

Signed-off-by: Stefan Agner <stefan@agner.ch>
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c