summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2014-02-06 18:14:35 +0100
committerStefan Agner <stefan.agner@toradex.com>2014-02-06 18:16:02 +0100
commit098fb4efc843772a3f1e5695742dd1ca02e27960 (patch)
treedad516697783000c2730f307a81d461d72636f1d
parentc300f3a605f8984449c1a5324fd3edda6f2fd8ff (diff)
Before updating modes on HDMI hotplug, check if framebuffer is registered at all. This allows to disable framebuffers completely.
-rw-r--r--drivers/video/tegra/dc/hdmi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c
index ae45f04172aa..225d48ab15ee 100644
--- a/drivers/video/tegra/dc/hdmi.c
+++ b/drivers/video/tegra/dc/hdmi.c
@@ -1348,7 +1348,8 @@ void tegra_dc_hdmi_detect_config(struct tegra_dc *dc,
hdmi->dvi = !(specs->misc & FB_MISC_HDMI);
- tegra_fb_update_monspecs(dc->fb, specs, tegra_dc_hdmi_mode_filter);
+ if (dc->fb != NULL)
+ tegra_fb_update_monspecs(dc->fb, specs, tegra_dc_hdmi_mode_filter);
#ifdef CONFIG_SWITCH
hdmi->hpd_switch.state = 0;
switch_set_state(&hdmi->hpd_switch, 1);