From: David Woodhouse Date: Sun, 5 Apr 2009 14:38:33 +0000 (-0700) Subject: [MTD] set blkdev parent to the mtd device, not its parent X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d694846b6b1c92bcc946b6ffb0a5ea25d5df1014;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [MTD] set blkdev parent to the mtd device, not its parent Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index a49a9c8f2cb1..8773481a30c2 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c @@ -286,7 +286,7 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) gd->private_data = new; new->blkcore_priv = gd; gd->queue = tr->blkcore_priv->rq; - gd->driverfs_dev = new->mtd->dev.parent; + gd->driverfs_dev = &new->mtd->dev; if (new->readonly) set_disk_ro(gd, 1);