Преглед изворни кода

[MTD] [NOR] Add device parent info to physmap_of

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
David Woodhouse пре 16 година
родитељ
комит
db99a55231
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      drivers/mtd/maps/physmap_of.c

+ 1 - 0
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