part: Drop disk_partition_t typedef
[pandora-u-boot.git] / common / android_ab.c
index 6c4df41..b5b8af1 100644 (file)
@@ -5,6 +5,7 @@
 #include <common.h>
 #include <android_ab.h>
 #include <android_bootloader_message.h>
+#include <malloc.h>
 #include <linux/err.h>
 #include <memalign.h>
 #include <u-boot/crc.h>
@@ -80,7 +81,7 @@ static int ab_control_default(struct bootloader_control *abc)
  * @return 0 on success and a negative on error
  */
 static int ab_control_create_from_disk(struct blk_desc *dev_desc,
-                                      const disk_partition_t *part_info,
+                                      const struct disk_partition *part_info,
                                       struct bootloader_control **abc)
 {
        ulong abc_offset, abc_blocks, ret;
@@ -130,7 +131,7 @@ static int ab_control_create_from_disk(struct blk_desc *dev_desc,
  * @return 0 on success and a negative on error
  */
 static int ab_control_store(struct blk_desc *dev_desc,
-                           const disk_partition_t *part_info,
+                           const struct disk_partition *part_info,
                            struct bootloader_control *abc)
 {
        ulong abc_offset, abc_blocks, ret;
@@ -177,7 +178,7 @@ static int ab_compare_slots(const struct slot_metadata *a,
        return 0;
 }
 
-int ab_select_slot(struct blk_desc *dev_desc, disk_partition_t *part_info)
+int ab_select_slot(struct blk_desc *dev_desc, struct disk_partition *part_info)
 {
        struct bootloader_control *abc = NULL;
        u32 crc32_le;