diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-04-05 07:38:33 -0700 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-05-26 16:41:21 +0100 |
commit | d694846b6b1c92bcc946b6ffb0a5ea25d5df1014 (patch) | |
tree | a66ead7aa6335b9c50a0a28eaf492d1e4f7cc657 /drivers/mtd/mtd_blkdevs.c | |
parent | 091bf7624d1c90cec9e578a18529f615213ff847 (diff) | |
download | lwn-d694846b6b1c92bcc946b6ffb0a5ea25d5df1014.tar.gz lwn-d694846b6b1c92bcc946b6ffb0a5ea25d5df1014.zip |
[MTD] set blkdev parent to the mtd device, not its parent
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/mtd_blkdevs.c')
-rw-r--r-- | 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 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); |