diff mbox

mtd: mtk-quadspi: drop unnecessary .owner assignment

Message ID 1448070013-139538-1-git-send-email-computersforpeace@gmail.com
State Accepted
Commit 0f6d3f4097d2746925986af5e34b864c5f6b2682
Headers show

Commit Message

Brian Norris Nov. 21, 2015, 1:40 a.m. UTC
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 | 1 -
 1 file changed, 1 deletion(-)

Comments

Brian Norris Dec. 4, 2015, 11:32 p.m. UTC | #1
On Fri, Nov 20, 2015 at 05:40:13PM -0800, Brian Norris wrote:
> 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>

Applied to l2-mtd.git
diff mbox

Patch

diff --git a/drivers/mtd/spi-nor/mtk-quadspi.c b/drivers/mtd/spi-nor/mtk-quadspi.c
index dd269650cd16..e1dd9fd16fbe 100644
--- a/drivers/mtd/spi-nor/mtk-quadspi.c
+++ b/drivers/mtd/spi-nor/mtk-quadspi.c
@@ -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);