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 <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20250307-spi-nor-headers-cleanup-v1-1-c186a9511c1e@linaro.org Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
1 parent 9302029 commit fafa240

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)