liminix-fork/pkgs/kernel/phram-fix-missing-writebufsize.patch

13 lines
428 B
Diff
Raw Normal View History

2024-01-23 13:23:07 +01:00
diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c
index 1bf192f229d7..74f89333a03e 100644
--- a/drivers/mtd/devices/phram.c
+++ b/drivers/mtd/devices/phram.c
@@ -154,6 +154,7 @@ static int register_device(struct platform_device *pdev, const char *name,
new->mtd.type = MTD_RAM;
new->mtd.erasesize = erasesize;
new->mtd.writesize = 1;
+ new->mtd.writebufsize = 1;
mtd_set_of_node(&new->mtd, np);