summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2009-04-06 16:15:42 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-04-06 16:15:42 +0200
commitdb99a5523175ba15fef4719c722cea11b94911bb (patch)
tree97157a675da7b6d0a0b6a46ad28f9717c5fa4d19 /drivers/mtd/maps
parent[MTD] [NAND] Add support for NAND on the Socrates board (diff)
downloadlinux-db99a5523175ba15fef4719c722cea11b94911bb.tar.xz
linux-db99a5523175ba15fef4719c722cea11b94911bb.zip
[MTD] [NOR] Add device parent info to physmap_of
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/physmap_of.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c
index fbf0ca939d72..c83a60fada53 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