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

mtd: devices: sst251: show parent device in sysfs

Fix a bug where mtd parent device symlinks aren't shown in sysfs.

While at it, make use of the default owner value set by mtdcore.

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
90b99752 7d242722

+1 -2
+1 -2
drivers/mtd/devices/sst25l.c
··· 374 374 data = dev_get_platdata(&spi->dev); 375 375 if (data && data->name) 376 376 flash->mtd.name = data->name; 377 - else 378 - flash->mtd.name = dev_name(&spi->dev); 379 377 378 + flash->mtd.dev.parent = &spi->dev; 380 379 flash->mtd.type = MTD_NORFLASH; 381 380 flash->mtd.flags = MTD_CAP_NORFLASH; 382 381 flash->mtd.erasesize = flash_info->erase_size;