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)
struct lcdif_crtc *lcdif_crtc = to_lcdif_crtc(crtc);
struct imx_crtc_state *imx_crtc_state = to_imx_crtc_state(state);
+ /* return directly when no devices attached
+ * to LCDIF to avoid below error messsage to
+ * make noises in this case.
+ */
+ if (!imx_crtc_state->bus_format)
+ return -EINVAL;
+
/* check the requested bus format can be
* supported by LCDIF CTRC or not
*/