From: David Woodhouse Date: Mon, 6 Apr 2009 14:15:42 +0000 (-0700) Subject: [MTD] [NOR] Add device parent info to physmap_of X-Git-Tag: v2.6.30-rc1~143^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db99a5523175ba15fef4719c722cea11b94911bb;p=platform%2Fupstream%2Fkernel-adaptation-pc.git [MTD] [NOR] Add device parent info to physmap_of Signed-off-by: David Woodhouse --- 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