diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2014-02-06 18:14:35 +0100 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2014-02-06 18:16:02 +0100 |
commit | 098fb4efc843772a3f1e5695742dd1ca02e27960 (patch) | |
tree | dad516697783000c2730f307a81d461d72636f1d | |
parent | c300f3a605f8984449c1a5324fd3edda6f2fd8ff (diff) |
video: tegra: check if framebuffer is registredColibri_T30_LinuxImageV2.1Beta2_20140206Colibri_T20_LinuxImageV2.1Beta2_20140207Apalis_T30_LinuxImageV2.1Beta2_20140206
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.c | 3 |
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); |