9
0
Fork 0

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:
Sascha Hauer 2014-02-13 14:25:47 +01:00
parent e25cabf6a3
commit 08f007c897
1 changed files with 1 additions and 1 deletions

View File

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