summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise-panel.c
diff options
context:
space:
mode:
authorGaurav Sarode <gsarode@nvidia.com>2011-06-08 17:17:01 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:52:17 -0800
commit349a3e333a404de64d1bfbb052634418f4b3df90 (patch)
tree9ad51fbfebdf5a1e718f49ff067e2a96955055f5 /arch/arm/mach-tegra/board-enterprise-panel.c
parentfc159da87c868217237010bbf095776fb885aee1 (diff)
arm: tegra: add hdmi to earlysuspend
use FB_BLANK_POWERDOWN on hdmi device in earlysuspend to cause tegra_dc_disable. This change applies to enterprise,whistler and ventana. Fixes bug 835171 Original-Change-Id: I792ab60344667acbdfcbd65a2ba697c2e7b59a78 Reviewed-on: http://git-master/r/35854 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com> Rebase-Id: Rcf714ac4f34a3abe9b5e8d341765601cad432e43
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-panel.c')
-rw-r--r--arch/arm/mach-tegra/board-enterprise-panel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-panel.c b/arch/arm/mach-tegra/board-enterprise-panel.c
index a5eb5f1a6b7c..4868e32d8744 100644
--- a/arch/arm/mach-tegra/board-enterprise-panel.c
+++ b/arch/arm/mach-tegra/board-enterprise-panel.c
@@ -711,8 +711,9 @@ struct early_suspend enterprise_panel_early_suspender;
static void enterprise_panel_early_suspend(struct early_suspend *h)
{
- if (num_registered_fb > 0)
- fb_blank(registered_fb[0], FB_BLANK_POWERDOWN);
+ unsigned i;
+ for (i = 0; i < num_registered_fb; i++)
+ fb_blank(registered_fb[i], FB_BLANK_POWERDOWN);
#ifdef CONFIG_TEGRA_CONVSERVATIVE_GOV_ON_EARLYSUPSEND
cpufreq_save_default_governor();
cpufreq_set_conservative_governor();
@@ -724,8 +725,9 @@ static void enterprise_panel_early_suspend(struct early_suspend *h)
static void enterprise_panel_late_resume(struct early_suspend *h)
{
- if (num_registered_fb > 0)
- fb_blank(registered_fb[0], FB_BLANK_UNBLANK);
+ unsigned i;
+ for (i = 0; i < num_registered_fb; i++)
+ fb_blank(registered_fb[i], FB_BLANK_UNBLANK);
#ifdef CONFIG_TEGRA_CONVSERVATIVE_GOV_ON_EARLYSUPSEND
cpufreq_restore_default_governor();
#endif