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

mtd: devices: spear_smi: 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
7d242722 57eea0f5

+1
+1
drivers/mtd/devices/spear_smi.c
··· 854 854 else 855 855 flash->mtd.name = flash_devices[flash_index].name; 856 856 857 + flash->mtd.dev.parent = &pdev->dev; 857 858 flash->mtd.type = MTD_NORFLASH; 858 859 flash->mtd.writesize = 1; 859 860 flash->mtd.flags = MTD_CAP_NORFLASH;