提交 f67ae488 编写于 作者: L Ladislav Michl 提交者: Boris Brezillon

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

commit 67ce04bf ("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: NLadislav Michl <ladis@linux-mips.org>
Acked-by: NRoger Quadros <rogerq@ti.com>
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
上级 086c321e
...@@ -1823,7 +1823,6 @@ static int omap_nand_probe(struct platform_device *pdev) ...@@ -1823,7 +1823,6 @@ static int omap_nand_probe(struct platform_device *pdev)
if (err) if (err)
return err; return err;
platform_set_drvdata(pdev, info);
info->ops = gpmc_omap_get_nand_ops(&info->reg, info->gpmc_cs); info->ops = gpmc_omap_get_nand_ops(&info->reg, info->gpmc_cs);
if (!info->ops) { if (!info->ops) {
dev_err(&pdev->dev, "Failed to get GPMC->NAND interface\n"); dev_err(&pdev->dev, "Failed to get GPMC->NAND interface\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册