diff options
Diffstat (limited to 'drivers/nand/diskonchip.c')
-rw-r--r-- | drivers/nand/diskonchip.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/nand/diskonchip.c b/drivers/nand/diskonchip.c index 07e2549..afaae83 100644 --- a/drivers/nand/diskonchip.c +++ b/drivers/nand/diskonchip.c @@ -20,7 +20,11 @@ */ #include <common.h> -#ifdef CONFIG_NEW_NAND_CODE + +#ifdef CFG_NAND_LEGACY +#error CFG_NAND_LEGACY defined in a file not using the legacy NAND support! +#endif + #include <linux/kernel.h> #include <linux/init.h> #include <linux/sched.h> @@ -1782,4 +1786,3 @@ module_exit(cleanup_nanddoc); MODULE_LICENSE("GPL"); MODULE_AUTHOR("David Woodhouse <dwmw2@infradead.org>"); MODULE_DESCRIPTION("M-Systems DiskOnChip 2000, Millennium and Millennium Plus device driver\n"); -#endif /* CONFIG_NEW_NAND_CODE */ |