]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: nand: add includes in NAND core to avoid warnings
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 3 Oct 2019 17:50:21 +0000 (19:50 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 4 Dec 2019 22:10:51 +0000 (17:10 -0500)
commitc8f555f10267c89735ee721618c0b17c0f2ba3c8
treeaa29efb27f63ad010d48a3e89436a7e07032cd12
parente81f03248e76a6b2b169e181659dd83a8f8765fd
mtd: nand: add includes in NAND core to avoid warnings

Because of the include's game, when some files are compiled for a SPI
NAND device, no warning appears. But when it is for a raw NAND device,
GCC complains. Fix these warning by including <common.h>.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/bbt.c
drivers/mtd/nand/core.c