diff options
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 aaac3b6800b7..c3f62654b6df 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c | |||
@@ -291,7 +291,7 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) | |||
291 | gd->private_data = new; | 291 | gd->private_data = new; |
292 | new->blkcore_priv = gd; | 292 | new->blkcore_priv = gd; |
293 | gd->queue = tr->blkcore_priv->rq; | 293 | gd->queue = tr->blkcore_priv->rq; |
294 | gd->driverfs_dev = new->mtd->dev.parent; | 294 | gd->driverfs_dev = &new->mtd->dev; |
295 | 295 | ||
296 | if (new->readonly) | 296 | if (new->readonly) |
297 | set_disk_ro(gd, 1); | 297 | set_disk_ro(gd, 1); |