tegra: dc: fix build errors
Seshendra Gadagottu [Fri, 27 Jul 2012 00:51:23 +0000 (17:51 -0700)]
Fixed compilation erros with CONFIG_TEGRA_DC enable:
1. Unused variables in dc.c and board-curacao-panel.c
2. Merge issue related to window.c

Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Change-Id: I087b6f15b68ef5fa9739c84dc3abc81db7d7b9d2
Reviewed-on: http://git-master/r/118821
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

drivers/video/tegra/dc/dc.c
drivers/video/tegra/dc/window.c

index 7a5ad32..da7e1fc 100644 (file)
@@ -809,6 +809,7 @@ static void tegra_dc_get_cmu(struct tegra_dc *dc, struct tegra_dc_cmu *cmu)
                cmu->lut2[i] = LUT2_READ_DATA(val);
        }
 }
+EXPORT_SYMBOL(tegra_dc_get_cmu);
 
 static int tegra_dc_update_cmu(struct tegra_dc *dc, bool cmu_enable)
 {
index 70f4924..1efcdab 100644 (file)
@@ -296,8 +296,10 @@ int tegra_dc_update_windows(struct tegra_dc_win *windows[], int n)
                        tegra_dc_writel(dc, v_dda, DC_WIN_V_INITIAL_DDA);
                }
 
+#if defined(CONFIG_ARCH_TEGRA_2x_SOC) || defined(CONFIG_ARCH_TEGRA_3x_SOC)
                tegra_dc_writel(dc, 0, DC_WIN_BUF_STRIDE);
                tegra_dc_writel(dc, 0, DC_WIN_UV_BUF_STRIDE);
+#endif
                tegra_dc_writel(dc, (unsigned long)win->phys_addr,
                        DC_WINBUF_START_ADDR);