mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 21:40:37 -04:00
mtd: nand: fsl_upm: 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:
committed by
Brian Norris
parent
6031a9c5e3
commit
50c65c8ffa
@@ -176,7 +176,7 @@ static int fun_chip_init(struct fsl_upm_nand *fun,
|
||||
fun->chip.dev_ready = fun_chip_ready;
|
||||
|
||||
fun->mtd.priv = &fun->chip;
|
||||
fun->mtd.owner = THIS_MODULE;
|
||||
fun->mtd.dev.parent = fun->dev;
|
||||
|
||||
flash_np = of_get_next_child(upm_np, NULL);
|
||||
if (!flash_np)
|
||||
|
||||
Reference in New Issue
Block a user