mtd: mtk-quadspi: drop unnecessary .owner assignment
authorBrian Norris <computersforpeace@gmail.com>
Sat, 21 Nov 2015 01:38:33 +0000 (17:38 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 4 Dec 2015 23:31:53 +0000 (15:31 -0800)
As of commit 807f16d4db95 ("mtd: core: set some defaults when
dev.parent is set"), the MTD core will set this for us.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Bayi Cheng <bayi.cheng@mediatek.com>
drivers/mtd/spi-nor/mtk-quadspi.c

index dd269650cd16470ff32e2b9ace5eb4dfe3cfc834..e1dd9fd16fbe0792fcb31935c99176f9882c4b29 100644 (file)
@@ -390,7 +390,6 @@ static int __init mtk_nor_init(struct mt8173_nor *mt8173_nor,
        nor->read_reg = mt8173_nor_read_reg;
        nor->write = mt8173_nor_write;
        nor->write_reg = mt8173_nor_write_reg;
-       nor->mtd.owner = THIS_MODULE;
        nor->mtd.name = "mtk_nor";
        /* initialized with NULL */
        ret = spi_nor_scan(nor, NULL, SPI_NOR_DUAL);