diff options
author | Rama Kandhala <rkandhala@nvidia.com> | 2010-03-05 11:54:41 +0530 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-03-08 10:06:29 -0800 |
commit | 0c2c9956982663d23373ac7ac7c3bfea57f5d2ae (patch) | |
tree | 6d263aba2b61ab85c11b38cbe2ee037fdaf2702d | |
parent | 3cb112b319306cd993cb421577035c03be05723a (diff) |
tegra uart: Make device id equal to instance id
Changed the registration to use the device ID same as instance.
With this change instance 0 will show up as ttyHS0 and instance 1
will show up as ttyHS1 and so on. Before this change, if the instance 0
was not used on a platform, instance 1 would have showed up as ttyHS0.
Bug 656451
Tested with Harmony.
Made sure that all nodes showup in the device list except the missing instance.
Change-Id: Ib4e04b12f16002deb899b38630de102c24e588b0
Reviewed-on: http://git-master/r/735
Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com>
Reviewed-by: Gary King <gking@nvidia.com>
Tested-by: Gary King <gking@nvidia.com>
-rwxr-xr-x | arch/arm/mach-tegra/init_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/init_common.c b/arch/arm/mach-tegra/init_common.c index 4a2217d2af68..62b8547ce991 100755 --- a/arch/arm/mach-tegra/init_common.c +++ b/arch/arm/mach-tegra/init_common.c @@ -438,7 +438,6 @@ void __init tegra_register_uart(void) NvU32 Port = ~0; const NvU32 *pPinMuxes; NvU32 NumPinMuxes; - NvU32 Cnt = 0; Console = NvOdmQueryDebugConsole(); NumberOfUarts = NvRmModuleGetNumInstances(s_hRmGlobal, @@ -458,7 +457,7 @@ void __init tegra_register_uart(void) if (i==Port || !pPinMuxes[i]) continue; - pDev = platform_device_alloc("tegra_uart", Cnt++); + pDev = platform_device_alloc("tegra_uart", i); if (!pDev) goto fail; if (platform_device_add(pDev)) |