From 84465b9c3432d096c971f38ebd459cef8f4d00e2 Mon Sep 17 00:00:00 2001 From: Gary Bisson <gary.bisson@boundarydevices.com> Date: Mon, 1 Oct 2018 12:04:57 +0200 Subject: [PATCH] fbpanel: fix fbname assignment when no di is provided Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> --- arch/arm/mach-imx/fbpanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/fbpanel.c b/arch/arm/mach-imx/fbpanel.c index 96a8cbfe1ce..1ffd110c82a 100644 --- a/arch/arm/mach-imx/fbpanel.c +++ b/arch/arm/mach-imx/fbpanel.c @@ -482,7 +482,7 @@ static void setup_cmd_fb(unsigned fb, const struct display_info_t *di, char *buf } set_variables: env_set(cmd_fbnames[fb], buf_start); - env_set(fbnames_name[fb], di->mode.name); + env_set(fbnames_name[fb], di ? di->mode.name : mode_str); } static const struct display_info_t *find_panel(const struct display_info_t *di, int cnt, unsigned fb, const char *name) -- GitLab