[MTD] [NOR] Add device parent info to physmap_of
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 6 Apr 2009 14:15:42 +0000 (07:15 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 6 Apr 2009 14:15:42 +0000 (07:15 -0700)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/physmap_of.c

index fbf0ca939d723ba7121f2ca14c4d85a2a603a0ef..c83a60fada530e1a73f812bef5c44d18e7432259 100644 (file)
@@ -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