Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)