Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <fransklaver@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>

authored by

Frans Klaver and committed by
Brian Norris
3aed61d1 90b99752

+1
+1
drivers/mtd/lpddr/lpddr2_nvm.c
··· 460 460 461 461 /* Populate mtd_info data structure */ 462 462 *mtd = (struct mtd_info) { 463 + .dev = { .parent = &pdev->dev }, 463 464 .name = pdev->dev.init_name, 464 465 .type = MTD_RAM, 465 466 .priv = map,