aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/partition/gpt.c
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-02-07 04:22:22 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-02-07 04:22:22 +0000
commitd36ae3e4c44c6547467f7ca92298ebad99700cb3 (patch)
tree76d9e0cabe45c1ed6d9ea87a5deb9c75c4345653 /drivers/partition/gpt.c
parentf94bb7f616791b95961e9d25c0a7b0c79fd45edc (diff)
parentcabe6937f2c9d0a50e4631c0545bddd650233ae8 (diff)
downloadplatform_external_arm-trusted-firmware-android11-gsi.tar.gz
platform_external_arm-trusted-firmware-android11-gsi.tar.bz2
platform_external_arm-trusted-firmware-android11-gsi.zip
Change-Id: Id9d1eda28e2f504532858d4c602eeebec865f19e
Diffstat (limited to 'drivers/partition/gpt.c')
-rw-r--r--drivers/partition/gpt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/partition/gpt.c b/drivers/partition/gpt.c
index 4577f06a2..1b804deef 100644
--- a/drivers/partition/gpt.c
+++ b/drivers/partition/gpt.c
@@ -52,9 +52,10 @@ int parse_gpt_entry(gpt_entry_t *gpt_entry, partition_entry_t *entry)
if (result != 0) {
return result;
}
- entry->start = (uint64_t)gpt_entry->first_lba * PARTITION_BLOCK_SIZE;
+ entry->start = (uint64_t)gpt_entry->first_lba *
+ PLAT_PARTITION_BLOCK_SIZE;
entry->length = (uint64_t)(gpt_entry->last_lba -
gpt_entry->first_lba + 1) *
- PARTITION_BLOCK_SIZE;
+ PLAT_PARTITION_BLOCK_SIZE;
return 0;
}