[U-Boot] [RFC PATCH 03/20] mtd: fix build issue with includes
Miquel Raynal
miquel.raynal at bootlin.com
Wed Jun 6 15:30:23 UTC 2018
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 at bootlin.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 777a926623..52d1afb5b8 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -22,6 +22,7 @@
#include <mtd/mtd-abi.h>
#include <linux/errno.h>
#include <div64.h>
+#include <dm/device.h>
#define MAX_MTD_DEVICES 32
#endif
--
2.14.1
More information about the U-Boot
mailing list