mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
b10d604459
Signed-off-by: Felix Fietkau <nbd@nbd.name>
25 lines
819 B
Diff
25 lines
819 B
Diff
--- a/drivers/mtd/mtdconcat.c
|
|
+++ b/drivers/mtd/mtdconcat.c
|
|
@@ -683,8 +683,12 @@ struct mtd_info *mtd_concat_create(struc
|
|
concat->mtd._writev = concat_writev;
|
|
if (subdev[0]->_read_oob)
|
|
concat->mtd._read_oob = concat_read_oob;
|
|
+ else
|
|
+ concat->mtd._read = concat_read;
|
|
if (subdev[0]->_write_oob)
|
|
concat->mtd._write_oob = concat_write_oob;
|
|
+ else
|
|
+ concat->mtd._write = concat_write;
|
|
if (subdev[0]->_block_isbad)
|
|
concat->mtd._block_isbad = concat_block_isbad;
|
|
if (subdev[0]->_block_markbad)
|
|
@@ -744,8 +748,6 @@ struct mtd_info *mtd_concat_create(struc
|
|
concat->mtd.name = name;
|
|
|
|
concat->mtd._erase = concat_erase;
|
|
- concat->mtd._read = concat_read;
|
|
- concat->mtd._write = concat_write;
|
|
concat->mtd._sync = concat_sync;
|
|
concat->mtd._lock = concat_lock;
|
|
concat->mtd._unlock = concat_unlock;
|