tegra: cardhu: fixed cardhu_dsi_modes warnings
Jon Mayo [Fri, 11 Mar 2011 00:15:15 +0000 (16:15 -0800)]
when CONFIG_TEGRA_CARDHU_DSI is disabled also leave out cardhu_dsi_modes and
dsi related unused static functions.

Original-Change-Id: Ia7bfdf0e139a1620119fe359fd34760e8d768c4b
Reviewed-on: http://git-master/r/22476
Reviewed-by: Jonathan Mayo <jmayo@nvidia.com>
Tested-by: Jonathan Mayo <jmayo@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Original-Change-Id: Ie73050f7df61294bb022c6779519dc9695bd80da

Rebase-Id: R2870d6c7aa8c5630fdbf0913701b4936807b6f54

arch/arm/mach-tegra/board-cardhu-panel.c

index 8954c52..200b3da 100644 (file)
@@ -363,6 +363,7 @@ static struct tegra_dc_platform_data cardhu_disp2_pdata = {
        .fb             = &cardhu_hdmi_fb_data,
 };
 
+#ifdef CONFIG_TEGRA_CARDHU_DSI
 static int cardhu_dsi_panel_enable(void)
 {
        static struct regulator *reg = NULL;
@@ -548,6 +549,7 @@ static struct tegra_fb_data cardhu_dsi_fb_data = {
        .bits_per_pixel = 32,
 #endif
 };
+#endif
 
 static struct tegra_dc_out cardhu_disp1_out = {
        .align          = TEGRA_DC_ALIGN_MSB,