mtd: devices: mtd_dataflash: drop owner assignment
authorFrans Klaver <fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:20 +0000 (22:38 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 13 Oct 2015 16:21:15 +0000 (09:21 -0700)
Owner is automatically set by mtdcore. Make use of that.

Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/mtd_dataflash.c

index df6f61137376c397fc05d3b9b658a8b6892addb5..39666d552682e9d607025f3d01ba0afd513dd260 100644 (file)
@@ -648,7 +648,6 @@ static int add_dataflash_otp(struct spi_device *spi, char *name, int nr_pages,
        device->size = nr_pages * pagesize;
        device->erasesize = pagesize;
        device->writesize = pagesize;
-       device->owner = THIS_MODULE;
        device->type = MTD_DATAFLASH;
        device->flags = MTD_WRITEABLE;
        device->_erase = dataflash_erase;