diff mbox

[39/60] mtd: nand: mpc5121_nfc: show device in sysfs

Message ID 1425418844-25177-40-git-send-email-fransklaver@gmail.com
State Accepted
Commit 7829ab93f1c2334802d259a7e2a4e22a1fd03bd9
Headers show

Commit Message

Frans Klaver March 3, 2015, 9:40 p.m. UTC
Fix a bug where devices aren't shown in sysfs.

Signed-off-by: Frans Klaver <fransklaver@gmail.com>
---
 drivers/mtd/nand/mpc5121_nfc.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/mtd/nand/mpc5121_nfc.c b/drivers/mtd/nand/mpc5121_nfc.c
index 1f12e5b..b97c371 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;