From 0c2c9956982663d23373ac7ac7c3bfea57f5d2ae Mon Sep 17 00:00:00 2001 From: Rama Kandhala Date: Fri, 5 Mar 2010 11:54:41 +0530 Subject: 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 Reviewed-by: Gary King Tested-by: Gary King --- arch/arm/mach-tegra/init_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'arch/arm/mach-tegra') 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)) -- cgit v1.2.3