ARM: tegra11: dalmore: Fix build error with CONFIG_MACH_DALMORE
Roger Hsieh [Tue, 8 Jan 2013 06:17:38 +0000 (14:17 +0800)]
sd_brightness is not exported only on dalmore board file. Add it in
to get build error fixed.

Bug 1214485

Change-Id: Ib79cbbafaba976103c4e866d3962e247dd50d3ef
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/189454
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

arch/arm/mach-tegra/board-panel.h
arch/arm/mach-tegra/board-pluto-panel.c

index 9f38094..80ea05b 100644 (file)
@@ -37,7 +37,7 @@ struct tegra_panel {
 
 };
 
-extern atomic_t sd_brightness;
+static __maybe_unused atomic_t sd_brightness = ATOMIC_INIT(255);
 extern struct tegra_panel dsi_l_720p_5;
 extern struct tegra_panel dsi_j_720p_4_7;
 extern struct tegra_panel dsi_s_1080p_5;
index b0fbf26..9fff563 100644 (file)
@@ -55,9 +55,6 @@ struct platform_device * __init pluto_host1x_init(void)
 }
 
 
-atomic_t __maybe_unused sd_brightness = ATOMIC_INIT(255);
-EXPORT_SYMBOL(sd_brightness);
-
 #ifdef CONFIG_TEGRA_DC
 
 /* hdmi pins for hotplug */