From: Frans Klaver Date: Wed, 10 Jun 2015 20:38:23 +0000 (+0200) Subject: mtd: lpddr: show parent device in sysfs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3aed61d1eb06b8b19b7bb09d49b222ebc3f83347;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Brian Norris --- 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,