mtd: nand: gpio: show parent device in sysfs
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Nov 6 10:59:20 PST 2015
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=e6c6c284e7344d4b9d262ceb91aea1ba2127fccb
Commit: e6c6c284e7344d4b9d262ceb91aea1ba2127fccb
Parent: efefcaee7610c0762c34123d121ef77f6e550214
Author: Frans Klaver <fransklaver at gmail.com>
AuthorDate: Wed Jun 10 22:38:48 2015 +0200
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Oct 13 12:56:44 2015 -0700
mtd: nand: gpio: 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 at gmail.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/nand/gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd/nand/gpio.c
index 73c4048..9ab97f9 100644
--- a/drivers/mtd/nand/gpio.c
+++ b/drivers/mtd/nand/gpio.c
@@ -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);
More information about the linux-mtd-cvs
mailing list