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

mtd: nand: sh_flctl: show parent device in sysfs

Fix a bug where 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
c4f7dc72 2eaac143

+1
+1
drivers/mtd/nand/sh_flctl.c
··· 1123 1123 flctl_mtd = &flctl->mtd; 1124 1124 nand = &flctl->chip; 1125 1125 flctl_mtd->priv = nand; 1126 + flctl_mtd->dev.parent = &pdev->dev; 1126 1127 flctl->pdev = pdev; 1127 1128 flctl->hwecc = pdata->has_hwecc; 1128 1129 flctl->holden = pdata->use_holden;