summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2010-09-08 14:06:14 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2010-09-13 20:43:14 -0700
commit6a3d70663c22deb829b09c4a9142d9f3ffd6db7a (patch)
tree5a49b27e4b24236e66f645aef4d06f79662fbd26 /arch
parent3529a3e9f14e4dba924f98d22fe008ab63938357 (diff)
[arm/tegra] serial: Don't register uart channel if pinux is 0.
If pinmux is not configured for the uart channel then will not be registering the uart device. bug 731336 (cherry picked from commit e496189740d18903db1de44cd96b96e07c93d8b7) Change-Id: Ib5a97425f991f16d280bfaabb00febacab392fe1 Reviewed-on: http://git-master/r/6373 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Harry Hong <hhong@nvidia.com> Tested-by: Harry Hong <hhong@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch')
-rwxr-xr-xarch/arm/mach-tegra/board-nvodm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-nvodm.c b/arch/arm/mach-tegra/board-nvodm.c
index ae04dcdfcdeb..bb3efa86bf20 100755
--- a/arch/arm/mach-tegra/board-nvodm.c
+++ b/arch/arm/mach-tegra/board-nvodm.c
@@ -501,6 +501,9 @@ static void __init tegra_setup_hsuart(void)
if (i==dbg_id)
continue;
+ if (odm_table[i] == 0)
+ continue;
+
plat = &tegra_uart_platform[i];
snprintf(name, sizeof(name), "%s.%d",