[PATCH 59/60] mtd: spi-nor: fsl-quadspi: show device in sysfs
From: Frans Klaver
Date: Tue Mar 03 2015 - 16:44:31 EST
Fix a bug where mtd devices aren't shown in sysfs.
Signed-off-by: Frans Klaver <fransklaver@xxxxxxxxx>
---
drivers/mtd/spi-nor/fsl-quadspi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
index 1c7308c..91b9d3f 100644
--- a/drivers/mtd/spi-nor/fsl-quadspi.c
+++ b/drivers/mtd/spi-nor/fsl-quadspi.c
@@ -875,6 +875,7 @@ static int fsl_qspi_probe(struct platform_device *pdev)
nor = &q->nor[i];
mtd = &q->mtd[i];
+ mtd->dev.parent = dev;
nor->mtd = mtd;
nor->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/