mtd: nand: r852: drop owner assignment

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


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

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

diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c
index cc6bac5..d8bb2be 100644
--- a/drivers/mtd/nand/r852.c
+++ b/drivers/mtd/nand/r852.c
@@ -641,7 +641,6 @@ static int r852_register_nand_device(struct r852_device *dev)
 
 	WARN_ON(dev->card_registred);
 
-	dev->mtd->owner = THIS_MODULE;
 	dev->mtd->priv = dev->chip;
 	dev->mtd->dev.parent = &dev->pci_dev->dev;
 



More information about the linux-mtd-cvs mailing list