aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/lpddr/lpddr2_nvm.c
diff options
context:
space:
mode:
authorFrans Klaver <[email protected]>2015-06-10 20:38:23 +0000
committerBrian Norris <[email protected]>2015-10-13 16:21:17 +0000
commit3aed61d1eb06b8b19b7bb09d49b222ebc3f83347 (patch)
treecfe63f8fe3778c1e9327483006a2c9f29722b52c /drivers/mtd/lpddr/lpddr2_nvm.c
parentmtd: devices: sst251: show parent device in sysfs (diff)
downloadkernel-3aed61d1eb06b8b19b7bb09d49b222ebc3f83347.tar.gz
kernel-3aed61d1eb06b8b19b7bb09d49b222ebc3f83347.zip
mtd: lpddr: show parent device in sysfs
Fix a bug where mtd parent device symlinks aren't shown in sysfs. Signed-off-by: Frans Klaver <[email protected]> Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr2_nvm.c')
-rw-r--r--drivers/mtd/lpddr/lpddr2_nvm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/lpddr/lpddr2_nvm.c b/drivers/mtd/lpddr/lpddr2_nvm.c
index 063cec40d0ae..2342277c9bcb 100644
--- a/drivers/mtd/lpddr/lpddr2_nvm.c
+++ b/drivers/mtd/lpddr/lpddr2_nvm.c
@@ -460,6 +460,7 @@ static int lpddr2_nvm_probe(struct platform_device *pdev)
/* Populate mtd_info data structure */
*mtd = (struct mtd_info) {
+ .dev = { .parent = &pdev->dev },
.name = pdev->dev.init_name,
.type = MTD_RAM,
.priv = map,