mtd: nand: sunxi_nand: drop owner assignment
authorFrans Klaver <fransklaver@gmail.com>
Wed, 10 Jun 2015 20:39:07 +0000 (22:39 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:36 +0000 (12:56 -0700)
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>
drivers/mtd/nand/sunxi_nand.c

index 92245a31233457ad5778bdd0090ab17982580c40..d8b809b13c0ee1d439a319416c1a1a9dd69e6e9e 100644 (file)
@@ -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)