]> git.sur5r.net Git - u-boot/blobdiff - disk/part_mac.c
dm: part: Convert partition API use to linker lists
[u-boot] / disk / part_mac.c
index ae83495f311c587ab2f52f95745c1f29d4fa88ee..3fb3b161aea5231c3928904544c206f0856d08eb 100644 (file)
@@ -40,7 +40,7 @@ static int part_mac_read_pdb(struct blk_desc *dev_desc, int part,
 /*
  * Test for a valid MAC partition
  */
-int test_part_mac(struct blk_desc *dev_desc)
+static int test_part_mac(struct blk_desc *dev_desc)
 {
        ALLOC_CACHE_ALIGN_BUFFER(mac_driver_desc_t, ddesc, 1);
        ALLOC_CACHE_ALIGN_BUFFER(mac_partition_t, mpart, 1);
@@ -64,8 +64,7 @@ int test_part_mac(struct blk_desc *dev_desc)
        return (0);
 }
 
-
-void print_part_mac(struct blk_desc *dev_desc)
+static void print_part_mac(struct blk_desc *dev_desc)
 {
        ulong i, n;
        ALLOC_CACHE_ALIGN_BUFFER(mac_driver_desc_t, ddesc, 1);
@@ -214,8 +213,8 @@ static int part_mac_read_pdb(struct blk_desc *dev_desc, int part,
        /* NOTREACHED */
 }
 
-int get_partition_info_mac(struct blk_desc *dev_desc, int part,
-                          disk_partition_t *info)
+static int get_partition_info_mac(struct blk_desc *dev_desc, int part,
+                                 disk_partition_t *info)
 {
        ALLOC_CACHE_ALIGN_BUFFER(mac_driver_desc_t, ddesc, 1);
        ALLOC_CACHE_ALIGN_BUFFER(mac_partition_t, mpart, 1);
@@ -238,4 +237,11 @@ int get_partition_info_mac(struct blk_desc *dev_desc, int part,
        return (0);
 }
 
+U_BOOT_PART_TYPE(mac) = {
+       .name           = "MAC",
+       .part_type      = PART_TYPE_MAC,
+       .get_info       = get_partition_info_mac,
+       .print          = print_part_mac,
+       .test           = test_part_mac,
+};
 #endif