fs/partitions: use ADDPART_FLAG_RAID instead of magic number
[pandora-kernel.git] / fs / partitions / mac.c
index 813292f..dece9b4 100644 (file)
@@ -6,7 +6,6 @@
  *  Re-organised Feb 1998 Russell King
  */
 
-#include <linux/config.h>
 #include <linux/ctype.h>
 #include "check.h"
 #include "mac.h"
@@ -75,6 +74,8 @@ int mac_partition(struct parsed_partitions *state, struct block_device *bdev)
                        be32_to_cpu(part->start_block) * (secsize/512),
                        be32_to_cpu(part->block_count) * (secsize/512));
 
+               if (!strnicmp(part->type, "Linux_RAID", 10))
+                       state->parts[slot].flags = ADDPART_FLAG_RAID;
 #ifdef CONFIG_PPC_PMAC
                /*
                 * If this is the first bootable partition, tell the