diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 20:38:48 (GMT) |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 19:56:44 (GMT) |
commit | e6c6c284e7344d4b9d262ceb91aea1ba2127fccb (patch) | |
tree | ce42e85c3ad672499211e93c75eab78a7ca2de15 /drivers/mtd/nand/gpio.c | |
parent | efefcaee7610c0762c34123d121ef77f6e550214 (diff) | |
download | linux-e6c6c284e7344d4b9d262ceb91aea1ba2127fccb.tar.xz |
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@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/gpio.c')
-rw-r--r-- | drivers/mtd/nand/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |