Skip to content

Commit fafa240

Browse files
committed
mtd: spi-nor: explicitly include <linux/of.h>
The core driver is using of_property_read_bool() and relies on implicit inclusion of <linux/of.h>, which comes from <linux/mtd/mtd.h>. It is good practice to directly include all headers used, it avoids implicit dependencies and spurious breakage if someone rearranges headers and causes the implicit include to vanish. Include the missing header. Reviewed-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tudor Ambarus <[email protected]>
1 parent 9302029 commit fafa240

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mtd/spi-nor/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <linux/mtd/mtd.h>
1818
#include <linux/mtd/spi-nor.h>
1919
#include <linux/mutex.h>
20+
#include <linux/of.h>
2021
#include <linux/of_platform.h>
2122
#include <linux/regulator/consumer.h>
2223
#include <linux/sched/task_stack.h>

0 commit comments

Comments
 (0)