mtd: nand: remove nand size print from nand_init function

Add nand_size() function to move the nand size print into initr_nand().
Remove nand size print from nand_init() to allow other function to call
nand_init() without printing nand size.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
Hou Zhiqiang
2017-03-17 16:12:31 +08:00
committed by York Sun
parent d72158c045
commit 203db38a94
3 changed files with 7 additions and 2 deletions

View File

@@ -28,6 +28,7 @@
#endif
extern void nand_init(void);
unsigned long nand_size(void);
#include <linux/compat.h>
#include <linux/mtd/mtd.h>