summaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorLuke Go <luke.go@hardkernel.com>2019-01-25 18:39:25 +0900
committerDongjin Kim <tobetter@gmail.com>2019-01-25 19:01:44 +0900
commit2892f2fbdca5a68cab93f89a07aad123c258e8e0 (patch)
tree7534df62771f818b90ae99483dc4429ccb2e631f /disk
parent9c079b1c6b72fa9d1a4567cabbb97a6342b8ece1 (diff)
downloadu-boot-odroid-c1-2892f2fbdca5a68cab93f89a07aad123c258e8e0.tar.gz
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
Diffstat (limited to 'disk')
-rw-r--r--disk/part.c16
1 files changed, 8 insertions, 8 deletions
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;