MLK-19318 drm/imx: lcdif: avoid log print when no device attached
authorFancy Fang <chen.fang@nxp.com>
Fri, 31 Aug 2018 03:27:29 +0000 (11:27 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit9c5711f22faf1984ff0917cce999e60647c1f946
treef82e1d94b873988c98aa6d67adf235633d557ceb
parent13c6deed08544151e151be5fed240359724bc7f9
MLK-19318 drm/imx: lcdif: avoid log print when no device attached

In the 'lcdif_crtc_atomic_check()', when the 'bus_format' is
zero which means that there is no valid display peripherals
attached to LCDIF, return directly to avoid below error log
to make noises, since the error log is not cared in this case.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 25d2b80f637af06094f56c60d46404af3b7ff381)
(cherry picked from commit 535a7256a3eae059398acaa040f42a4aa650bbea)
drivers/gpu/drm/imx/lcdif/lcdif-crtc.c