mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 14:30:58 +07:00
mtd: onenand: generic: 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: Frans Klaver <fransklaver@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
7b679053cd
commit
fe003bc831
@ -60,9 +60,8 @@ static int generic_onenand_probe(struct platform_device *pdev)
|
||||
info->onenand.mmcontrol = pdata ? pdata->mmcontrol : NULL;
|
||||
info->onenand.irq = platform_get_irq(pdev, 0);
|
||||
|
||||
info->mtd.name = dev_name(&pdev->dev);
|
||||
info->mtd.dev.parent = &pdev->dev;
|
||||
info->mtd.priv = &info->onenand;
|
||||
info->mtd.owner = THIS_MODULE;
|
||||
|
||||
if (onenand_scan(&info->mtd, 1)) {
|
||||
err = -ENXIO;
|
||||
|
Loading…
Reference in New Issue
Block a user