summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
authorFrans Klaver <fransklaver@gmail.com>2015-06-10 22:38:22 +0200
committerBrian Norris <computersforpeace@gmail.com>2015-10-13 09:21:16 -0700
commit90b997527ecbaac44485a52a01768d5ae32f3818 (patch)
treed0e0a97226822b57d31fcc39e8f332d6a47f0e39 /drivers/mtd/devices
parent7d24272253594abcdca8f52758a574367a5912bf (diff)
downloadop-kernel-dev-90b997527ecbaac44485a52a01768d5ae32f3818.zip
op-kernel-dev-90b997527ecbaac44485a52a01768d5ae32f3818.tar.gz
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>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r--drivers/mtd/devices/sst25l.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c
index c63ecbc..3928014 100644
--- a/drivers/mtd/devices/sst25l.c
+++ b/drivers/mtd/devices/sst25l.c
@@ -374,9 +374,8 @@ static int sst25l_probe(struct spi_device *spi)
data = dev_get_platdata(&spi->dev);
if (data && data->name)
flash->mtd.name = data->name;
- else
- flash->mtd.name = dev_name(&spi->dev);
+ flash->mtd.dev.parent = &spi->dev;
flash->mtd.type = MTD_NORFLASH;
flash->mtd.flags = MTD_CAP_NORFLASH;
flash->mtd.erasesize = flash_info->erase_size;
OpenPOWER on IntegriCloud