From: Frans Klaver Date: Wed, 10 Jun 2015 20:38:41 +0000 (+0200) Subject: mtd: nand: davinci_nand: drop owner and name assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6a44d420b53e7ab742373bb0c3ee36e75c13faee;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git mtd: nand: davinci_nand: 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/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index b90801302df4..c72313d66cf6 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -683,9 +683,6 @@ static int nand_davinci_probe(struct platform_device *pdev) info->vaddr = vaddr; info->mtd.priv = &info->chip; - info->mtd.name = dev_name(&pdev->dev); - info->mtd.owner = THIS_MODULE; - info->mtd.dev.parent = &pdev->dev; info->chip.IO_ADDR_R = vaddr;