[PATCH v2 58/60] mtd: onenand: samsung: drop owner assignment
Frans Klaver
fransklaver at gmail.com
Wed Jun 10 13:39:12 PDT 2015
Owner is automatically set by mtdcore. Make use of that.
Signed-off-by: Frans Klaver <fransklaver at gmail.com>
---
drivers/mtd/onenand/samsung.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c
index 19cfb97..5685923 100644
--- a/drivers/mtd/onenand/samsung.c
+++ b/drivers/mtd/onenand/samsung.c
@@ -864,7 +864,6 @@ static int s3c_onenand_probe(struct platform_device *pdev)
this = (struct onenand_chip *) &mtd[1];
mtd->priv = this;
mtd->dev.parent = &pdev->dev;
- mtd->owner = THIS_MODULE;
onenand->pdev = pdev;
onenand->type = platform_get_device_id(pdev)->driver_data;
--
2.4.0
More information about the linux-mtd
mailing list