[MTD] [NOR] Add device parent info to physmap_of
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Apr 6 10:59:01 EDT 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=db99a5523175ba15fef4719c722cea11b94911bb
Commit: db99a5523175ba15fef4719c722cea11b94911bb
Parent: 1b578193af3b94c3d55d9aaf6b53275b1cb59a41
Author: David Woodhouse <David.Woodhouse at intel.com>
AuthorDate: Mon Apr 6 07:15:42 2009 -0700
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Apr 6 07:15:42 2009 -0700
[MTD] [NOR] Add device parent info to physmap_of
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/maps/physmap_of.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c
index fbf0ca9..c83a60f 100644
--- a/drivers/mtd/maps/physmap_of.c
+++ b/drivers/mtd/maps/physmap_of.c
@@ -219,6 +219,7 @@ static int __devinit of_flash_probe(struct of_device *dev,
goto err_out;
}
info->mtd->owner = THIS_MODULE;
+ info->mtd->dev.parent = &dev->dev;
#ifdef CONFIG_MTD_PARTITIONS
/* First look for RedBoot table or partitions on the command
More information about the linux-mtd-cvs
mailing list