These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / mtd / devices / sst25l.c
index c63ecbc..5b84d71 100644 (file)
@@ -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;
@@ -417,7 +416,6 @@ static int sst25l_remove(struct spi_device *spi)
 static struct spi_driver sst25l_driver = {
        .driver = {
                .name   = "sst25l",
-               .owner  = THIS_MODULE,
        },
        .probe          = sst25l_probe,
        .remove         = sst25l_remove,