[PATCH] mtd: map_ram: Enable mtdoops

Alessio Igor Bogani alessio.bogani at elettra.eu
Thu Dec 11 01:38:06 PST 2014


Signed-off-by: Alessio Igor Bogani <alessio.bogani at elettra.eu>
---
 drivers/mtd/chips/map_ram.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/chips/map_ram.c b/drivers/mtd/chips/map_ram.c
index 991c2a1..afb43d5 100644
--- a/drivers/mtd/chips/map_ram.c
+++ b/drivers/mtd/chips/map_ram.c
@@ -68,6 +68,7 @@ static struct mtd_info *map_ram_probe(struct map_info *map)
 	mtd->_get_unmapped_area = mapram_unmapped_area;
 	mtd->_read = mapram_read;
 	mtd->_write = mapram_write;
+	mtd->_panic_write = mapram_write;
 	mtd->_sync = mapram_nop;
 	mtd->flags = MTD_CAP_RAM;
 	mtd->writesize = 1;
-- 
2.1.3




More information about the linux-mtd mailing list