Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
ARM: drm: panel: Fix panel-simple.c to stop it from crashing when usi…
Browse files Browse the repository at this point in the history
…ng simple dsi panel

Signed-off-by: Po Cheng <[email protected]>
  • Loading branch information
po-cheng-technexion committed May 29, 2019
1 parent 2f82e23 commit f6d4b0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/panel/panel-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -2084,6 +2084,9 @@ static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
/* if no drm_display_mode from device tree then use the (default) desc (i.e. id->data) */
if (!desc) {
desc = (struct panel_desc_dsi*)id->data;
dsi_flags = desc->flags;
dsi_format = desc->format;
dsi_lanes = desc->lanes;
} else {
/* parse only the dsi,flags, format, and lanes setting */
of_property_read_u32(np, "dsi,flags", &dsi_flags);
Expand Down

0 comments on commit f6d4b0c

Please sign in to comment.