Skip to content

Commit 9fba757

Browse files
committed
fix: only override matching algorithm for lk2nd
1 parent 42160f3 commit 9fba757

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform/msm_shared/dev_tree.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,7 @@ int dev_tree_validate(struct dt_table *table, unsigned int page_size, uint32_t *
14561456
static bool is_stock_match(struct dt_entry *cur_dt_entry)
14571457
{
14581458
// Stock Motorola devices use a different way to match the DTB.
1459+
#if WITH_LK2ND_DEVICE
14591460
{
14601461
extern const uint32_t mmi_prod_id;
14611462
extern const struct mmi_unit_info *mmi_unit_info;
@@ -1469,6 +1470,7 @@ static bool is_stock_match(struct dt_entry *cur_dt_entry)
14691470
}
14701471
}
14711472
}
1473+
#endif
14721474
return false;
14731475
}
14741476

0 commit comments

Comments
 (0)