diff options
author | Frans Klaver <fransklaver@gmail.com> | 2015-06-10 22:38:53 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-10-13 12:56:32 -0700 |
commit | 7829ab93f1c2334802d259a7e2a4e22a1fd03bd9 (patch) | |
tree | 270713f2228ecf00af690c7f975e6a19fa686d53 /drivers/mtd | |
parent | 52364683d5dc4beec9ba61a3fb848821b5cb66c4 (diff) | |
download | linux-7829ab93f1c2334802d259a7e2a4e22a1fd03bd9.tar.bz2 |
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')
-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 019fe0dc6203..d6bbde4a5331 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; |