video: tegra: clear video modes on hdmi unplug
authorErik Gilling <konkers@android.com>
Tue, 19 Oct 2010 21:51:09 +0000 (14:51 -0700)
committerErik Gilling <konkers@android.com>
Thu, 21 Oct 2010 01:21:34 +0000 (18:21 -0700)
Change-Id: If9aabc5efa1b934c94e71e0210f38979f6f7e58e
Signed-off-by: Erik Gilling <konkers@android.com>
drivers/video/tegra/dc/hdmi.c

index 4be656e351256b19628a87509aa0b8aeb7ae0203..58ad135b90cc8a672a6de86d8eca2654dff9c165 100644 (file)
@@ -465,8 +465,10 @@ static void tegra_dc_hdmi_detect_worker(struct work_struct *work)
                container_of(to_delayed_work(work), struct tegra_dc_hdmi_data, work);
        struct tegra_dc *dc = hdmi->dc;
 
-       if (!tegra_dc_hdmi_detect(dc))
+       if (!tegra_dc_hdmi_detect(dc)) {
                tegra_dc_disable(dc);
+               tegra_fb_update_monspecs(dc->fb, NULL, NULL);
+       }
 }
 
 static irqreturn_t tegra_dc_hdmi_irq(int irq, void *ptr)