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
committerNiket Sirsi <nsirsi@nvidia.com>2011-06-14 16:19:44 -0700
commit2aea6156a5b30b3a6720f2935da70ced0303198f (patch)
tree75cfaf69f2e8a1597a155037426f72d7f929bf3f /arch/arm/mach-tegra/board-enterprise-panel.c
parent83272b227d51b45df6e376d733e1878b035fb505 (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 Change-Id: I792ab60344667acbdfcbd65a2ba697c2e7b59a78 Reviewed-on: http://git-master/r/35854 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
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 f4f70d051649..5f4955051703 100644
--- a/arch/arm/mach-tegra/board-enterprise-panel.c
+++ b/arch/arm/mach-tegra/board-enterprise-panel.c
@@ -465,8 +465,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();
@@ -478,8 +479,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