diff options
author | Bo-Chen Chen <rex-bc.chen@mediatek.com> | 2023-01-10 15:41:08 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-01-11 15:35:04 +0000 |
commit | 1fd7d9dc909d87eee31930842a8575a3bb05a3b3 (patch) | |
tree | 9091b57eb1d8b1f01decff06cc4538d7358c50ca /src/mainboard/google/geralt | |
parent | f488a401205307c7a064fe9793f729d012f48c3e (diff) |
mb/google/geralt: Keep booting even if MIPI panel not found
We should keep booting even failed to get the MIPI panel.
BUG=none
TEST=emerge-geralt coreboot;
Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Change-Id: I39d9e04e5908f669ae2a1a8ce8858b93cae20654
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71785
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/geralt')
-rw-r--r-- | src/mainboard/google/geralt/panel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/google/geralt/panel.c b/src/mainboard/google/geralt/panel.c index b5519432ef..3174870050 100644 --- a/src/mainboard/google/geralt/panel.c +++ b/src/mainboard/google/geralt/panel.c @@ -53,7 +53,8 @@ struct panel_description *get_active_panel(void) /* We need to find init cmds for MIPI panel from CBFS */ get_mipi_cmd_from_cbfs(panel); - assert(panel->s); + if (!panel->s) + return NULL; const struct edid *edid = &panel->s->edid; const char *name = edid->ascii_string; |