[PATCH] mtd: maps: vmu: add include to ensure maple mtd code builds
From: Adrian McMenamin
Date: Wed Apr 08 2026 - 17:36:55 EST
maple.h included in vmu-flash.c references struct device and struct
device_driver, so we should explicitly include linux/device.h to ensure
the code builds without error.
Include header file required for build.
Signed-off-by: Adrian McMenamin <adrianmcmenamin@xxxxxxxxx>
---
drivers/mtd/maps/vmu-flash.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/maps/vmu-flash.c b/drivers/mtd/maps/vmu-flash.c
index 75e06d249ce9..e2a574a4b438 100644
--- a/drivers/mtd/maps/vmu-flash.c
+++ b/drivers/mtd/maps/vmu-flash.c
@@ -9,6 +9,7 @@
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/delay.h>
+#include <linux/device.h>
#include <linux/maple.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
--
2.43.0