From: Frans Klaver Date: Wed, 10 Jun 2015 20:38:31 +0000 (+0200) Subject: mtd: maps: physmap_of: drop owner assignment X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0df415598ef6551070267b1d8c9dc63f4ac00117;p=linux-beck.git mtd: maps: physmap_of: 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/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index 3e614e9119d5..e46b4e983666 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c @@ -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; }