From 2892f2fbdca5a68cab93f89a07aad123c258e8e0 Mon Sep 17 00:00:00 2001 From: Luke Go Date: Fri, 25 Jan 2019 18:39:25 +0900 Subject: ODROID-COMMON: android: Reordering the partition table type. Before this patch, each of accessing the partition table commands are using the 'MPT' table. After the patch, checking the table type are reordered and the 'MBR' table is used. So each commands can access via the 'MBR' table. Just the fastboot using the 'MPT' table. Change-Id: I819690fa90302737d65d7b4093fe0f9819cfa854 --- disk/part.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'disk') diff --git a/disk/part.c b/disk/part.c index f8f2e0524d..ce072dcf92 100644 --- a/disk/part.c +++ b/disk/part.c @@ -277,14 +277,6 @@ void init_part(block_dev_desc_t *dev_desc) } #endif -#ifdef CONFIG_MPT_PARTITION - if (test_part_mpt(dev_desc) == 0) { - printf("%s() %d: PART_TYPE_MPT\n", __func__, __LINE__); - dev_desc->part_type = PART_TYPE_MPT; - return; - } -#endif - #ifdef CONFIG_DOS_PARTITION if (test_part_dos(dev_desc) == 0) { printf("%s() %d: PART_TYPE_DOS\n", __func__, __LINE__); @@ -293,6 +285,14 @@ void init_part(block_dev_desc_t *dev_desc) } #endif +#ifdef CONFIG_MPT_PARTITION + if (test_part_mpt(dev_desc) == 0) { + printf("%s() %d: PART_TYPE_MPT\n", __func__, __LINE__); + dev_desc->part_type = PART_TYPE_MPT; + return; + } +#endif + #ifdef CONFIG_AMIGA_PARTITION if (test_part_amiga(dev_desc) == 0) { dev_desc->part_type = PART_TYPE_AMIGA; -- cgit v1.2.1