mtd: devices: mtd_dataflash: drop owner assignment

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Nov 6 10:59:12 PST 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=57eea0f5fb221f88c3c9b0ddc967c004bfff7e9c
Commit:     57eea0f5fb221f88c3c9b0ddc967c004bfff7e9c
Parent:     1560d2132ae95b36b25cc78811af8eaf9bbb2f8e
Author:     Frans Klaver <fransklaver at gmail.com>
AuthorDate: Wed Jun 10 22:38:20 2015 +0200
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Oct 13 09:21:15 2015 -0700

    mtd: devices: mtd_dataflash: drop owner assignment
    
    Owner is automatically set by mtdcore. Make use of that.
    
    Signed-off-by: Frans Klaver <fransklaver at gmail.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/devices/mtd_dataflash.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index df6f611..39666d5 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -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;



More information about the linux-mtd-cvs mailing list