diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 23:38:55 +0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 22:56:39 +0300 |
commit | 0033cf072735a80072c877559180288012f4426d (patch) | |
tree | e06cdb8deb62b0d0600ddadb5a4e02389115d3fc /drivers/mtd/nand/ndfc.c | |
parent | 9e86508f3e538d13c879c7c48a5eecb0509aade6 (diff) | |
download | linux-0033cf072735a80072c877559180288012f4426d.tar.xz |
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>
Diffstat (limited to 'drivers/mtd/nand/ndfc.c')
-rw-r--r-- | drivers/mtd/nand/ndfc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c index 67a1b3f911cf..4f0d62f9d22c 100644 --- a/drivers/mtd/nand/ndfc.c +++ b/drivers/mtd/nand/ndfc.c @@ -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) |