summaryrefslogtreecommitdiff
path: root/drivers/mtd/onenand/omap2.c
diff options
context:
space:
mode:
authorFrans Klaver <fransklaver@gmail.com>2015-06-10 23:39:11 +0300
committerBrian Norris <computersforpeace@gmail.com>2015-10-13 22:56:43 +0300
commitfd511e218c6a3272ce6a57be9c41e1bc09e37306 (patch)
tree60a73fa934aaff029f15d193c1d21ebbfa79d138 /drivers/mtd/onenand/omap2.c
parent40acbab6a7402ec89fac673bed6bbbc2b430d60e (diff)
downloadlinux-fd511e218c6a3272ce6a57be9c41e1bc09e37306.tar.xz
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 <fransklaver@gmail.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/onenand/omap2.c')
-rw-r--r--drivers/mtd/onenand/omap2.c2
1 files changed, 0 insertions, 2 deletions
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;