]> git.sur5r.net Git - u-boot/blobdiff - disk/part_mac.c
fec_mxc: incomplete error handling
[u-boot] / disk / part_mac.c
index ee9d170b7002b3b77682f4ec78c40749d624cddb..bebe415d6290e8b90f4f066e5402985bc7682312 100644 (file)
 #include <common.h>
 #include <command.h>
 #include <ide.h>
-#include <cmd_disk.h>
 #include "part_mac.h"
 
-#if ((CONFIG_COMMANDS & CFG_CMD_IDE) || (CONFIG_COMMANDS & CFG_CMD_SCSI)) && defined(CONFIG_MAC_PARTITION)
+#if defined(CONFIG_CMD_IDE) || \
+    defined(CONFIG_CMD_MG_DISK) || \
+    defined(CONFIG_CMD_SCSI) || \
+    defined(CONFIG_CMD_SATA) || \
+    defined(CONFIG_CMD_USB) || \
+    defined(CONFIG_MMC) || \
+    defined(CONFIG_SYSTEMACE)
 
 /* stdlib.h causes some compatibility problems; should fixe these! -- wd */
 #ifndef __ldiv_t_defined
@@ -190,9 +195,9 @@ static int part_mac_read_pdb (block_dev_desc_t *dev_desc, int part, mac_partitio
 
        for (;;) {
                /*
-                 * We must always read the descritpor block for
-                 * partition 1 first since this is the only way to
-                 * know how many partitions we have.
+                * We must always read the descritpor block for
+                * partition 1 first since this is the only way to
+                * know how many partitions we have.
                 */
                if (dev_desc->block_read (dev_desc->dev, n, 1, (ulong *)pdb_p) != 1) {
                        printf ("** Can't read Partition Map on %d:%d **\n",
@@ -248,4 +253,4 @@ int get_partition_info_mac (block_dev_desc_t *dev_desc, int part, disk_partition
        return (0);
 }
 
-#endif /* (CONFIG_COMMANDS & CFG_CMD_IDE) && CONFIG_MAC_PARTITION */
+#endif