mtd: nand: sunxi_nand: 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=611425d33763fba57a02c40ee286b0c7152903ea
Commit:     611425d33763fba57a02c40ee286b0c7152903ea
Parent:     c4f7dc72e6a56d50e00b40f76be0119ce9abdeec
Author:     Frans Klaver <fransklaver at gmail.com>
AuthorDate: Wed Jun 10 22:39:07 2015 +0200
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Oct 13 12:56:36 2015 -0700

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

diff --git a/drivers/mtd/nand/sunxi_nand.c b/drivers/mtd/nand/sunxi_nand.c
index 92245a3..d8b809b 100644
--- a/drivers/mtd/nand/sunxi_nand.c
+++ b/drivers/mtd/nand/sunxi_nand.c
@@ -1339,7 +1339,6 @@ static int sunxi_nand_chip_init(struct device *dev, struct sunxi_nfc *nfc,
 	mtd = &chip->mtd;
 	mtd->dev.parent = dev;
 	mtd->priv = nand;
-	mtd->owner = THIS_MODULE;
 
 	ret = nand_scan_ident(mtd, nsels, NULL);
 	if (ret)



More information about the linux-mtd-cvs mailing list