mtd: maps: physmap_of: drop owner assignment
authorFrans Klaver <fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:31 +0000 (22:38 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:22 +0000 (12:56 -0700)
Owner is 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/maps/physmap_of.c

index 3e614e9119d58414c0adfdec475629eaf5bb44d4..e46b4e9836668ed5e434e26bb963c2d87b2b7588 100644 (file)
@@ -290,7 +290,6 @@ static int of_flash_probe(struct platform_device *dev)
                } else {
                        info->list_size++;
                }
-               info->list[i].mtd->owner = THIS_MODULE;
                info->list[i].mtd->dev.parent = &dev->dev;
        }