From da20b1512965f7ec25b114f27b2fc8ad8ae069ed Mon Sep 17 00:00:00 2001 From: Harikrishnan Hariharan Date: Wed, 14 Dec 2016 12:33:07 +0530 Subject: [PATCH] Update the device node to check for MDM systems To identify the target as MDM, we need to check for "/target" node mdm targets instead of "/dev/mdm". Change-Id: Ibb53acfd06a0a586f2cdca784f475d0a45718581 CRs-Fixed: 1101185 --- utils/loc_target.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/loc_target.cpp b/utils/loc_target.cpp index 10168610..53a8985e 100644 --- a/utils/loc_target.cpp +++ b/utils/loc_target.cpp @@ -198,7 +198,7 @@ unsigned int loc_get_target(void) static const char hw_platform_dep[] = "/sys/devices/system/soc/soc0/hw_platform"; static const char id_dep[] = "/sys/devices/system/soc/soc0/id"; - static const char mdm[] = "/dev/mdm"; // No such file or directory + static const char mdm[] = "/target"; // mdm target we are using char rd_hw_platform[LINE_LEN]; char rd_id[LINE_LEN];