X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=drivers%2Fmtd%2Fdevices%2Fsst25l.c;h=5b84d71efb3642f179b5128ae2d4c6c76a4cdc31;hb=02f0d3f758ab456c50199b723a53f2443fa4f684;hp=18febf74404d808597e0b1b737535e8a82b8369e;hpb=2d49dcb9e48f65a69281fe4c698c8f1a20215daf;p=linux.git diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index 18febf74404d..5b84d71efb36 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;