diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 20:38:53 (GMT) |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 19:56:32 (GMT) |
commit | 7829ab93f1c2334802d259a7e2a4e22a1fd03bd9 (patch) | |
tree | 270713f2228ecf00af690c7f975e6a19fa686d53 /drivers/mtd/nand/mpc5121_nfc.c | |
parent | 52364683d5dc4beec9ba61a3fb848821b5cb66c4 (diff) | |
download | linux-7829ab93f1c2334802d259a7e2a4e22a1fd03bd9.tar.xz |
mtd: nand: mpc5121_nfc: show parent device in sysfs
Fix a bug where parent device symlinks aren't shown in sysfs.
Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/mpc5121_nfc.c')
-rw-r--r-- | drivers/mtd/nand/mpc5121_nfc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c index 019fe0d..d6bbde4 100644 --- a/drivers/mtd/nand/mpc5121_nfc.c +++ b/drivers/mtd/nand/mpc5121_nfc.c @@ -659,6 +659,7 @@ static int mpc5121_nfc_probe(struct platform_device *op) chip = &prv->chip; mtd->priv = chip; + mtd->dev.parent = dev; chip->priv = prv; prv->dev = dev; |