diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 20:38:46 (GMT) |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 19:56:47 (GMT) |
commit | 50c65c8ffa4fd08926e671f0c4d9702bfc29c4e2 (patch) | |
tree | 0643cf04f9bcde953952394c3d0fe77d78886ccc /drivers/mtd/nand/fsl_upm.c | |
parent | 6031a9c5e39121165617951c4dc337fed72c7bd5 (diff) | |
download | linux-50c65c8ffa4fd08926e671f0c4d9702bfc29c4e2.tar.xz |
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>
Diffstat (limited to 'drivers/mtd/nand/fsl_upm.c')
-rw-r--r-- | drivers/mtd/nand/fsl_upm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c index 72755d7..d326369 100644 --- a/drivers/mtd/nand/fsl_upm.c +++ b/drivers/mtd/nand/fsl_upm.c @@ -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) |