mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
mtd: nand: ndfc: 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: Frans Klaver <fransklaver@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
9e86508f3e
commit
0033cf0727
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
|
|||
chip->priv = ndfc;
|
||||
|
||||
ndfc->mtd.priv = chip;
|
||||
ndfc->mtd.owner = THIS_MODULE;
|
||||
ndfc->mtd.dev.parent = &ndfc->ofdev->dev;
|
||||
|
||||
flash_np = of_get_next_child(node, NULL);
|
||||
if (!flash_np)
|
||||
|
|
Loading…
Reference in a new issue