diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 22:38:56 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 12:56:33 -0700 |
commit | ae5d843826d147f81a8d5def8d630caae7ab8011 (patch) | |
tree | 631b5c4bbb9ca108806dc38819a9c62b1ff4f712 /drivers/mtd | |
parent | 7829ab93f1c2334802d259a7e2a4e22a1fd03bd9 (diff) | |
download | blackbird-op-linux-ae5d843826d147f81a8d5def8d630caae7ab8011.tar.gz blackbird-op-linux-ae5d843826d147f81a8d5def8d630caae7ab8011.zip |
mtd: nand: nuc900_nand: 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 value set by mtdcore.
Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/nuc900_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nuc900_nand.c b/drivers/mtd/nand/nuc900_nand.c index e58c644dd220..f0687f71fbd8 100644 --- a/drivers/mtd/nand/nuc900_nand.c +++ b/drivers/mtd/nand/nuc900_nand.c @@ -250,7 +250,7 @@ static int nuc900_nand_probe(struct platform_device *pdev) chip = &(nuc900_nand->chip); nuc900_nand->mtd.priv = chip; - nuc900_nand->mtd.owner = THIS_MODULE; + nuc900_nand->mtd.dev.parent = &pdev->dev; spin_lock_init(&nuc900_nand->lock); nuc900_nand->clk = devm_clk_get(&pdev->dev, NULL); |