From: Frans Klaver Date: Wed, 10 Jun 2015 20:39:11 +0000 (+0200) Subject: mtd: onenand: omap2: drop owner and name assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fd511e218c6a3272ce6a57be9c41e1bc09e37306;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mtd: onenand: omap2: drop owner and name assignment Owner and name are automatically set by mtdcore. Make use of that. Signed-off-by: Frans Klaver Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/onenand/omap2.c index 646ddd6db1b4..3e0285696227 100644 --- a/drivers/mtd/onenand/omap2.c +++ b/drivers/mtd/onenand/omap2.c @@ -710,9 +710,7 @@ static int omap2_onenand_probe(struct platform_device *pdev) c->onenand.base, c->freq); c->pdev = pdev; - c->mtd.name = dev_name(&pdev->dev); c->mtd.priv = &c->onenand; - c->mtd.owner = THIS_MODULE; c->mtd.dev.parent = &pdev->dev;