[MTD] set blkdev parent to the mtd device, not its parent

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue May 26 11:59:01 EDT 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=d694846b6b1c92bcc946b6ffb0a5ea25d5df1014
Commit:     d694846b6b1c92bcc946b6ffb0a5ea25d5df1014
Parent:     091bf7624d1c90cec9e578a18529f615213ff847
Author:     David Woodhouse <David.Woodhouse at intel.com>
AuthorDate: Sun Apr 5 07:38:33 2009 -0700
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Tue May 26 16:41:21 2009 +0100

    [MTD] set blkdev parent to the mtd device, not its parent
    
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/mtd_blkdevs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index a49a9c8..8773481 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);



More information about the linux-mtd-cvs mailing list