diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 20:39:05 (GMT) |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 19:56:42 (GMT) |
commit | 6393b3623340973c9f110060e435c7d42e299120 (patch) | |
tree | 58d443f720372e19f5505347bd7fb16a968f659a | |
parent | 853f1c58c4b2a6f1ec81c335c82d0252b387ab1e (diff) | |
download | linux-6393b3623340973c9f110060e435c7d42e299120.tar.xz |
mtd: nand: sharpsl: 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>
-rw-r--r-- | drivers/mtd/nand/sharpsl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/sharpsl.c b/drivers/mtd/nand/sharpsl.c index 842c47a..082b600 100644 --- a/drivers/mtd/nand/sharpsl.c +++ b/drivers/mtd/nand/sharpsl.c @@ -144,7 +144,7 @@ static int sharpsl_nand_probe(struct platform_device *pdev) /* Link the private data with the MTD structure */ sharpsl->mtd.priv = this; - sharpsl->mtd.owner = THIS_MODULE; + sharpsl->mtd.dev.parent = &pdev->dev; platform_set_drvdata(pdev, sharpsl); |