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

Frans Klaver fransklaver at gmail.com
Tue Mar 3 13:40:23 PST 2015


Fix a bug where devices aren't shown in sysfs.

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

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;
 
-- 
2.2.2




More information about the linux-mtd mailing list