summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/hdmi.c
diff options
context:
space:
mode:
authorRobert Morell <rmorell@nvidia.com>2011-06-28 15:47:17 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:47:36 -0800
commitbc430aa7d46eb163ce0e68f98f2fd4b58eb8deca (patch)
tree95caf968ca33a9ff122c164327c535d1a6f3af37 /drivers/video/tegra/dc/hdmi.c
parent3187bb154ac23f001dfbc5c3369d2893ada0bc4e (diff)
video: tegra: Conditionalize variable 'reg_addr'
This change conditionalizes the declaration of variable 'reg_addr' with the same condition that it's used to fix the warning: drivers/video/tegra/dc/hdmi.c: In function 'tegra_dc_hdmi_setup_audio': drivers/video/tegra/dc/hdmi.c:1129: warning: unused variable 'reg_addr' Original-Change-Id: Ifc4ace5a9fef06e7e880782c4ee3d4b75aeb8595 Signed-off-by: Robert Morell <rmorell@nvidia.com> Reviewed-on: http://git-master/r/39298 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rca23cf803a6035704e22c5ce88b4f5e12e841b70
Diffstat (limited to 'drivers/video/tegra/dc/hdmi.c')
-rw-r--r--drivers/video/tegra/dc/hdmi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c
index 107940b05f7c..f5ac06bbe890 100644
--- a/drivers/video/tegra/dc/hdmi.c
+++ b/drivers/video/tegra/dc/hdmi.c
@@ -1073,7 +1073,9 @@ static int tegra_dc_hdmi_setup_audio(struct tegra_dc *dc, unsigned audio_freq,
struct tegra_dc_hdmi_data *hdmi = tegra_dc_get_outdata(dc);
const struct tegra_hdmi_audio_config *config;
unsigned long audio_n;
+#if !defined(CONFIG_ARCH_TEGRA_2x_SOC)
unsigned long reg_addr = 0;
+#endif
unsigned a_source = AUDIO_CNTRL0_SOURCE_SELECT_AUTO;
if (HDA == audio_source)