From: Frans Klaver Date: Wed, 10 Jun 2015 20:39:12 +0000 (+0200) Subject: mtd: onenand: samsung: drop owner assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=61344d074f4f924cf35aeee445568d9b7750d915;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mtd: onenand: samsung: drop owner assignment Owner is automatically set by mtdcore. Make use of that. Signed-off-by: Frans Klaver Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c index 739259513055..af0ac1a7bf8f 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;