diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-04-05 16:38:33 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-05-26 17:41:21 +0200 |
commit | d694846b6b1c92bcc946b6ffb0a5ea25d5df1014 (patch) | |
tree | a66ead7aa6335b9c50a0a28eaf492d1e4f7cc657 /drivers/mtd/mtd_blkdevs.c | |
parent | Linux 2.6.30-rc5 (diff) | |
download | linux-d694846b6b1c92bcc946b6ffb0a5ea25d5df1014.tar.xz linux-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); |