diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-04-05 10:38:33 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-05-26 11:41:21 -0400 |
commit | d694846b6b1c92bcc946b6ffb0a5ea25d5df1014 (patch) | |
tree | a66ead7aa6335b9c50a0a28eaf492d1e4f7cc657 /drivers/mtd/mtd_blkdevs.c | |
parent | 091bf7624d1c90cec9e578a18529f615213ff847 (diff) |
[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) | |||
286 | gd->private_data = new; | 286 | gd->private_data = new; |
287 | new->blkcore_priv = gd; | 287 | new->blkcore_priv = gd; |
288 | gd->queue = tr->blkcore_priv->rq; | 288 | gd->queue = tr->blkcore_priv->rq; |
289 | gd->driverfs_dev = new->mtd->dev.parent; | 289 | gd->driverfs_dev = &new->mtd->dev; |
290 | 290 | ||
291 | if (new->readonly) | 291 | if (new->readonly) |
292 | set_disk_ro(gd, 1); | 292 | set_disk_ro(gd, 1); |