mtd: nand: socrates_nand: drop owner assignment

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


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=6031a9c5e39121165617951c4dc337fed72c7bd5
Commit:     6031a9c5e39121165617951c4dc337fed72c7bd5
Parent:     36645652ad2183130dfc5d4644a69aa2102faa14
Author:     Frans Klaver <fransklaver at gmail.com>
AuthorDate: Wed Jun 10 22:39:06 2015 +0200
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Oct 13 12:56:46 2015 -0700

    mtd: nand: socrates_nand: 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/nand/socrates_nand.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/nand/socrates_nand.c b/drivers/mtd/nand/socrates_nand.c
index d710622..b94f534 100644
--- a/drivers/mtd/nand/socrates_nand.c
+++ b/drivers/mtd/nand/socrates_nand.c
@@ -167,7 +167,6 @@ static int socrates_nand_probe(struct platform_device *ofdev)
 	nand_chip->priv = host;		/* link the private data structures */
 	mtd->priv = nand_chip;
 	mtd->name = "socrates_nand";
-	mtd->owner = THIS_MODULE;
 	mtd->dev.parent = &ofdev->dev;
 	ppdata.of_node = ofdev->dev.of_node;
 



More information about the linux-mtd-cvs mailing list