nand.h: Cleanup linux/mtd/rawnand.h usage
We only include <linux/mtd/rawnand.h> in <nand.h> for the forward declaration of struct nand_chip, so do that directly. Then, include <linux/mtd/rawnand.h> where required directly. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -31,7 +31,6 @@ unsigned long nand_size(void);
|
||||
|
||||
#include <linux/compat.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/mtd/rawnand.h>
|
||||
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user