summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrans Klaver <fransklaver@gmail.com>2015-06-10 22:38:20 +0200
committerBrian Norris <computersforpeace@gmail.com>2015-10-13 09:21:15 -0700
commit57eea0f5fb221f88c3c9b0ddc967c004bfff7e9c (patch)
tree32a14316d252a387a3697f46e14de52fe8a843ad
parent1560d2132ae95b36b25cc78811af8eaf9bbb2f8e (diff)
downloadop-kernel-dev-57eea0f5fb221f88c3c9b0ddc967c004bfff7e9c.zip
op-kernel-dev-57eea0f5fb221f88c3c9b0ddc967c004bfff7e9c.tar.gz
mtd: devices: mtd_dataflash: drop owner assignment
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>
-rw-r--r--drivers/mtd/devices/mtd_dataflash.c1
1 files changed, 0 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud