mtd: onenand: omap2: drop owner and name assignment
authorFrans Klaver <fransklaver@gmail.com>
Wed, 10 Jun 2015 20:39:11 +0000 (22:39 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:43 +0000 (12:56 -0700)
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>
drivers/mtd/onenand/omap2.c

index 646ddd6db1b4a24ccd6178f1cad8ff382709de24..3e02856962279485025e5c54f2d2ff4aa05f9f04 100644 (file)
@@ -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;