mtd: nand: omap2: Do not assign omap_nand_info to platform drvdata

commit 67ce04bf27 ("mtd: nand: add OMAP2/OMAP3 NAND driver") assigned
pointer to omap_nand_info to the platform drvdata in probe function
just to be reasigned later to the pointer to mtd_info, which is
what remove function expects it to be. Remove useless assignment.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
This commit is contained in:
Ladislav Michl 2017-10-10 15:32:45 +02:00 committed by Boris Brezillon
parent 086c321ec5
commit f67ae488fd
1 changed files with 0 additions and 1 deletions

View File

@ -1823,7 +1823,6 @@ static int omap_nand_probe(struct platform_device *pdev)
if (err)
return err;
platform_set_drvdata(pdev, info);
info->ops = gpmc_omap_get_nand_ops(&info->reg, info->gpmc_cs);
if (!info->ops) {
dev_err(&pdev->dev, "Failed to get GPMC->NAND interface\n");