[PATCH v2 40/60] mtd: nand: mxc_nand: drop owner assignment

Frans Klaver fransklaver at gmail.com
Wed Jun 10 13:38:54 PDT 2015


Owner is automatically set by mtdcore. Make use of that.

Signed-off-by: Frans Klaver <fransklaver at gmail.com>
---
 drivers/mtd/nand/mxc_nand.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 372e0e3..dca63a7 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -1450,7 +1450,6 @@ static int mxcnd_probe(struct platform_device *pdev)
 	this = &host->nand;
 	mtd = &host->mtd;
 	mtd->priv = this;
-	mtd->owner = THIS_MODULE;
 	mtd->dev.parent = &pdev->dev;
 	mtd->name = DRIVER_NAME;
 
-- 
2.4.0




More information about the linux-mtd mailing list