summaryrefslogtreecommitdiff
path: root/drivers/nand/diskonchip.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nand/diskonchip.c')
-rw-r--r--drivers/nand/diskonchip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nand/diskonchip.c b/drivers/nand/diskonchip.c
index b421d4c1c3..07e2549352 100644
--- a/drivers/nand/diskonchip.c
+++ b/drivers/nand/diskonchip.c
@@ -19,6 +19,8 @@
* $Id: diskonchip.c,v 1.45 2005/01/05 18:05:14 dwmw2 Exp $
*/
+#include <common.h>
+#ifdef CONFIG_NEW_NAND_CODE
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/sched.h>
@@ -1780,3 +1782,4 @@ 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 */