summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpdabade <pdabade@nvidia.com>2013-07-29 13:12:28 +0530
committerMatthew Pedro <mapedro@nvidia.com>2013-08-06 14:26:53 -0700
commite544d763bb135aaac6e64775bb625b5739e70747 (patch)
tree166e053a24445992127612dc54d7bd00b09144ca
parent03d76f1a0925be102b7a2d9a06e9c8f7ba73aaff (diff)
Revert "video: tegra: Removing tegra_fb_set_par from tegra_fb_register"
This reverts commit 5065f2b7ca2f76f5cf48ceef3f4d09435d30be2e. Window format is not initialized. Window format is set by tegra_fb_set_par. Bug 1326825 Signed-off-by: Pankaj Dabade <pdabade@nvidia.com> Change-Id: I8c181cfc11f1db1df5b928f0c1216a40a6641160 Reviewed-on: http://git-master/r/254901 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
-rw-r--r--drivers/video/tegra/fb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c
index 229b23231cd8..d781ecb41ad0 100644
--- a/drivers/video/tegra/fb.c
+++ b/drivers/video/tegra/fb.c
@@ -659,6 +659,9 @@ struct tegra_fb_info *tegra_fb_register(struct platform_device *ndev,
win->flags = TEGRA_WIN_FLAG_ENABLED;
win->global_alpha = 0xFF;
+ if (fb_mem)
+ tegra_fb_set_par(info);
+
if (register_framebuffer(info)) {
dev_err(&ndev->dev, "failed to register framebuffer\n");
ret = -ENODEV;