[U-Boot,v3,06/21] mtd: fix build issue with includes

Message ID 20180712132506.26359-7-miquel.raynal@bootlin.com
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show
  • SPI-NAND support
Related show

Commit Message

Miquel Raynal July 12, 2018, 1:24 p.m.
Fix build errors produced by mtd.h and dm/device.h if not included in
the right order.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
 include/linux/mtd/mtd.h | 1 +
 1 file changed, 1 insertion(+)


diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 78eb745c04..32e3f31f8c 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -21,6 +21,7 @@ 
 #include <mtd/mtd-abi.h>
 #include <linux/errno.h>
 #include <div64.h>
+#include <dm/device.h>
 #define MAX_MTD_DEVICES 32