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
This commit is contained in:
Harikrishnan Hariharan 2016-12-14 12:33:07 +05:30 committed by Gerrit - the friendly Code Review server
parent 681388fa8d
commit da20b15129

View file

@ -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];