提交 efefcaee 编写于 作者: F Frans Klaver 提交者: Brian Norris

staging: mt29f_spinand: show parent device in sysfs

Fix a bug where mtd parent device symlinks aren't shown in sysfs.

While at it, take advantage of the default owner and name values set by
mtdcore.
Signed-off-by: NFrans Klaver <fransklaver@gmail.com>
Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 fd511e21
......@@ -912,8 +912,7 @@ static int spinand_probe(struct spi_device *spi_nand)
dev_set_drvdata(&spi_nand->dev, mtd);
mtd->priv = chip;
mtd->name = dev_name(&spi_nand->dev);
mtd->owner = THIS_MODULE;
mtd->dev.parent = &spi_nand->dev;
mtd->oobsize = 64;
if (nand_scan(mtd, 1))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册