liminix-fork/pkgs/kernel/phram-fix-missing-writebufsize.patch
2024-03-03 12:16:58 +01:00

12 lines
428 B
Diff

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);