diff mbox

[50/60] mtd: nand: sh_flctl: show device in sysfs

Message ID 1425418844-25177-51-git-send-email-fransklaver@gmail.com
State Accepted
Commit c4f7dc72e6a56d50e00b40f76be0119ce9abdeec
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/sh_flctl.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
index a21c378..19135b4 100644
--- a/drivers/mtd/nand/sh_flctl.c
+++ b/drivers/mtd/nand/sh_flctl.c
@@ -1125,6 +1125,7 @@  static int flctl_probe(struct platform_device *pdev)
 	flctl_mtd = &flctl->mtd;
 	nand = &flctl->chip;
 	flctl_mtd->priv = nand;
+	flctl_mtd->dev.parent = &pdev->dev;
 	flctl->pdev = pdev;
 	flctl->hwecc = pdata->has_hwecc;
 	flctl->holden = pdata->use_holden;