diff options
author | Stefan Roese <sr@denx.de> | 2009-04-24 15:58:33 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-04-28 01:15:37 +0200 |
commit | 10bb62d85a0850dbad1fdd34123378686373f166 (patch) | |
tree | f07564301cd6bfd36953a69ff60155a5a990786a /drivers/mtd/nand/nand_base.c | |
parent | 2d579e5060413af5a740cb396dc87e1ff31bf5a9 (diff) | |
download | u-boot-imx-10bb62d85a0850dbad1fdd34123378686373f166.zip u-boot-imx-10bb62d85a0850dbad1fdd34123378686373f166.tar.gz u-boot-imx-10bb62d85a0850dbad1fdd34123378686373f166.tar.bz2 |
mtd: nand: Include linux/mtd/partitions.h in nand_base.h
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>
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index e6ac859..360b070 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -68,6 +68,10 @@ #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> |