]> git.sur5r.net Git - u-boot/commitdiff
mtd: nand: Include linux/mtd/partitions.h in nand_base.h
authorStefan Roese <sr@denx.de>
Fri, 24 Apr 2009 13:58:33 +0000 (15:58 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 27 Apr 2009 23:15:37 +0000 (01:15 +0200)
This patch removes this compilation warning when CONFIG_MTD_PARTITIONS is
defined:

nand_base.c: In function 'nand_release':
nand_base.c:2922: warning: implicit declaration of function 'del_mtd_partitions'

Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/nand/nand_base.c

index e6ac859e1a52d336767eb06e9d8822cd6f822bd6..360b0708498c6d005297b1aafad7ffe8d7eead29 100644 (file)
 #include <linux/mtd/nand.h>
 #include <linux/mtd/nand_ecc.h>
 
+#ifdef CONFIG_MTD_PARTITIONS
+#include <linux/mtd/partitions.h>
+#endif
+
 #include <asm/io.h>
 #include <asm/errno.h>