mtd: nand: gpio: show parent device in sysfs
authorFrans Klaver <fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:48 +0000 (22:38 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:44 +0000 (12:56 -0700)
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>
drivers/mtd/nand/gpio.c

index 73c4048c3a567047401f99bd87b0024d1b911c21..9ab97f934c375c2561b90c5799b45cdf8cf24f4a 100644 (file)
@@ -275,7 +275,7 @@ static int gpio_nand_probe(struct platform_device *pdev)
        chip->cmd_ctrl          = gpio_nand_cmd_ctrl;
 
        gpiomtd->mtd_info.priv  = chip;
-       gpiomtd->mtd_info.owner = THIS_MODULE;
+       gpiomtd->mtd_info.dev.parent = &pdev->dev;
 
        platform_set_drvdata(pdev, gpiomtd);