Commit 50c65c8f authored by Frans Klaver's avatar Frans Klaver Committed by Brian Norris

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: default avatarFrans Klaver <fransklaver@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 6031a9c5
...@@ -176,7 +176,7 @@ static int fun_chip_init(struct fsl_upm_nand *fun, ...@@ -176,7 +176,7 @@ static int fun_chip_init(struct fsl_upm_nand *fun,
fun->chip.dev_ready = fun_chip_ready; fun->chip.dev_ready = fun_chip_ready;
fun->mtd.priv = &fun->chip; 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); flash_np = of_get_next_child(upm_np, NULL);
if (!flash_np) if (!flash_np)
......
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