board specific fixes * fix detection of RB-133C, thanks to Christophe Lucas * fix...
[openwrt/svn-archive/openwrt.git] / target / linux / adm5120-2.6 / files / drivers / mtd / maps / adm5120_mtd.c
index 6251fa47f253938297ecca24c4d1dd16c2af8e62..1c4680fc24c83e2b47e518fab78069aadd75dd34 100644 (file)
@@ -51,6 +51,7 @@
 #include <linux/jffs2.h>
 #include <linux/crc32.h>
 #include <asm/io.h>
+#include <asm/bootinfo.h>
 #include <asm/mach-adm5120/myloader.h>
 #include <asm/mach-adm5120/adm5120_info.h>
 
@@ -431,8 +432,7 @@ int __init init_adm5120_map(void)
        printk(KERN_NOTICE "Flash device: 0x%x at 0x%x\n", size, WINDOW_ADDR);
 
 #ifdef CONFIG_MTD_PARTITIONS
-
-       if (adm5120_boot_loader == BOOT_LOADER_CFE)
+       if (mips_machtype == MACH_ADM5120_WP54G_WRT)
        {
                printk(KERN_NOTICE "adm5120 : using CFE flash mapping\n");
                parts = init_mtd_partitions(adm5120_mtd, size);