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

From: Frans Klaver
Date: Tue Mar 03 2015 - 16:42:27 EST


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

Signed-off-by: Frans Klaver <fransklaver@xxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/