Commit e5cd9799 authored by Janusz Krzysztofik's avatar Janusz Krzysztofik Committed by Miquel Raynal

mtd: rawnand: ams-delta: show parent device in sysfs

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

While at it, make use of the default owner set by mtdcore.
Signed-off-by: default avatarJanusz Krzysztofik <jmkrzyszt@gmail.com>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent f1a97e0b
......@@ -160,7 +160,7 @@ static int ams_delta_init(struct platform_device *pdev)
}
ams_delta_mtd = nand_to_mtd(this);
ams_delta_mtd->owner = THIS_MODULE;
ams_delta_mtd->dev.parent = &pdev->dev;
/*
* Don't try to request the memory region from here,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment