浏览代码

[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;
 		goto err_out;
 	}
 	}
 	info->mtd->owner = THIS_MODULE;
 	info->mtd->owner = THIS_MODULE;
+	info->mtd->dev.parent = &dev->dev;
 
 
 #ifdef CONFIG_MTD_PARTITIONS
 #ifdef CONFIG_MTD_PARTITIONS
 	/* First look for RedBoot table or partitions on the command
 	/* First look for RedBoot table or partitions on the command