]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] [NAND] nandsim: missing header for do_div
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 5 Jun 2008 16:43:03 +0000 (09:43 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 5 Jun 2008 18:45:19 +0000 (19:45 +0100)
Fix nandsim build error, missing #include:

linux-next-20080605/drivers/mtd/nand/nandsim.c: In function 'divide':
linux-next-20080605/drivers/mtd/nand/nandsim.c:462: error: implicit declaration of function 'do_div'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/nandsim.c

index add975a229a7faf8cb00c9271e86b41be3dec5a9..ecd70e2504f6c07eef8f87b824ba1a2d71d02ba6 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/delay.h>
 #include <linux/list.h>
 #include <linux/random.h>
+#include <asm/div64.h>
 
 /* Default simulator parameters values */
 #if !defined(CONFIG_NANDSIM_FIRST_ID_BYTE)  || \