]> err.no Git - linux-2.6/blobdiff - drivers/mtd/nand/orion_nand.c
Merge branch 'core/rcu' into core/rcu-for-linus
[linux-2.6] / drivers / mtd / nand / orion_nand.c
index 9162cca0182b55e7e10be13483512d33a948dda6..ee2ac3948cd80b889332f004e5532cfaec4263ea 100644 (file)
@@ -18,8 +18,8 @@
 #include <linux/mtd/partitions.h>
 #include <asm/io.h>
 #include <asm/sizes.h>
-#include <asm/arch/platform.h>
 #include <asm/arch/hardware.h>
+#include <asm/plat-orion/orion_nand.h>
 
 #ifdef CONFIG_MTD_CMDLINE_PARTS
 static const char *part_probes[] = { "cmdlinepart", NULL };
@@ -85,6 +85,9 @@ static int __init orion_nand_probe(struct platform_device *pdev)
        nc->cmd_ctrl = orion_nand_cmd_ctrl;
        nc->ecc.mode = NAND_ECC_SOFT;
 
+       if (board->chip_delay)
+               nc->chip_delay = board->chip_delay;
+
        if (board->width == 16)
                nc->options |= NAND_BUSWIDTH_16;
 
@@ -169,3 +172,4 @@ module_exit(orion_nand_exit);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Tzachi Perelstein");
 MODULE_DESCRIPTION("NAND glue for Orion platforms");
+MODULE_ALIAS("platform:orion_nand");