projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
091bf76
)
[MTD] set blkdev parent to the mtd device, not its parent
author
David Woodhouse
<David.Woodhouse@intel.com>
Sun, 5 Apr 2009 14:38:33 +0000
(07:38 -0700)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Tue, 26 May 2009 15:41:21 +0000
(16:41 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtd_blkdevs.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtd_blkdevs.c
b/drivers/mtd/mtd_blkdevs.c
index a49a9c8f2cb1faffe5c16d782ea793839062dcc4..8773481a30c271ee811aab1d537346535d6a11e3 100644
(file)
--- 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);