[MTD] NAND Consolidate oobinfo handling
The info structure for out of band data was copied into the mtd structure. Make it a pointer and remove the ability to set it from userspace. The position of ecc bytes is defined by the hardware and should not be changed by software. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
@@ -766,9 +766,7 @@ struct mtd_info *mtd_concat_create(struct mtd_info *subdev[], /* subdevices to c
|
||||
|
||||
}
|
||||
|
||||
if(concat->mtd.type == MTD_NANDFLASH)
|
||||
memcpy(&concat->mtd.oobinfo, &subdev[0]->oobinfo,
|
||||
sizeof(struct nand_oobinfo));
|
||||
concat->mtd.oobinfo = subdev[0]->oobinfo;
|
||||
|
||||
concat->num_subdev = num_devs;
|
||||
concat->mtd.name = name;
|
||||
|
Reference in New Issue
Block a user