mtd: partition: make the mtd device the parent of the partition
Parent of a partition should be the parent mtd device, not its parent. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
e25cabf6a3
commit
08f007c897
|
@ -85,7 +85,7 @@ struct mtd_info *mtd_add_partition(struct mtd_info *mtd, off_t offset, size_t si
|
|||
|
||||
part->type = mtd->type;
|
||||
part->flags = mtd->flags;
|
||||
part->parent = mtd->parent;
|
||||
part->parent = &mtd->class_dev;
|
||||
part->erasesize = mtd->erasesize;
|
||||
part->writesize = mtd->writesize;
|
||||
part->writebufsize = mtd->writebufsize;
|
||||
|
|
Loading…
Reference in New Issue