diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 20:39:00 (GMT) |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 19:56:34 (GMT) |
commit | f0aa200ceb4f1bce6826d1c24b5c416a6a8b9faf (patch) | |
tree | ac173affcaa67c9584a68d6e41bd0f2b14a3893c /drivers/mtd/nand/plat_nand.c | |
parent | 84630994fab634baa0250fbd16537f74c8bdbb07 (diff) | |
download | linux-f0aa200ceb4f1bce6826d1c24b5c416a6a8b9faf.tar.xz |
mtd: nand: plat_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 and name 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/plat_nand.c')
-rw-r--r-- | drivers/mtd/nand/plat_nand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c index 717cf62..65b9dbbe 100644 --- a/drivers/mtd/nand/plat_nand.c +++ b/drivers/mtd/nand/plat_nand.c @@ -59,8 +59,7 @@ static int plat_nand_probe(struct platform_device *pdev) data->chip.priv = &data; data->mtd.priv = &data->chip; - data->mtd.owner = THIS_MODULE; - data->mtd.name = dev_name(&pdev->dev); + data->mtd.dev.parent = &pdev->dev; data->chip.IO_ADDR_R = data->io_base; data->chip.IO_ADDR_W = data->io_base; |