Skip to content

Commit d694846

Browse files
David WoodhouseDavid Woodhouse
authored andcommitted
[MTD] set blkdev parent to the mtd device, not its parent
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 091bf76 commit d694846

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mtd/mtd_blkdevs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new)
286286
gd->private_data = new;
287287
new->blkcore_priv = gd;
288288
gd->queue = tr->blkcore_priv->rq;
289-
gd->driverfs_dev = new->mtd->dev.parent;
289+
gd->driverfs_dev = &new->mtd->dev;
290290

291291
if (new->readonly)
292292
set_disk_ro(gd, 1);

0 commit comments

Comments
 (0)