From 1cefed1e39f0038ac6afd9e0c48b8b85fb458fbc Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 22 Sep 2021 14:50:35 -0400 Subject: nand.h: Cleanup linux/mtd/rawnand.h usage We only include in for the forward declaration of struct nand_chip, so do that directly. Then, include where required directly. Signed-off-by: Tom Rini --- include/nand.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/nand.h') diff --git a/include/nand.h b/include/nand.h index 80dd6469bc..75c605193a 100644 --- a/include/nand.h +++ b/include/nand.h @@ -31,7 +31,6 @@ unsigned long nand_size(void); #include #include -#include int nand_mtd_to_devnum(struct mtd_info *mtd); @@ -39,6 +38,8 @@ int nand_mtd_to_devnum(struct mtd_info *mtd); void board_nand_init(void); int nand_register(int devnum, struct mtd_info *mtd); #else +struct nand_chip; + extern int board_nand_init(struct nand_chip *nand); #endif -- cgit v1.2.3