From 098fb4efc843772a3f1e5695742dd1ca02e27960 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 6 Feb 2014 18:14:35 +0100 Subject: video: tegra: check if framebuffer is registred Before updating modes on HDMI hotplug, check if framebuffer is registered at all. This allows to disable framebuffers completely. --- drivers/video/tegra/dc/hdmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/video/tegra') 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); -- cgit v1.2.3