Revert "video: tegra: Removing tegra_fb_set_par from tegra_fb_register"
pdabade [Wed, 10 Jul 2013 08:42:48 +0000 (13:42 +0530)]
Patch causing regression. Greenish corruption is seen during boot.
This reverts commit f6c60cef8e6707e06c5057a43ecf280902eb1cce.

Bug 1316650

Change-Id: Ib19863f5430044cc3f96ccd87134713cd64230fb
Signed-off-by: Pankaj Dabade <pdabade@nvidia.com>
Reviewed-on: http://git-master/r/247718
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

drivers/video/tegra/fb.c

index e0237d1..8948635 100644 (file)
@@ -658,6 +658,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;