summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/omap2.c
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2017-10-10 15:32:45 +0200
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-10-14 15:21:05 +0200
commitf67ae488fd64029460551e34d403aa64562faea0 (patch)
tree97f9db5cc4c980cb7651be1c7961698daba0fbee /drivers/mtd/nand/omap2.c
parentmtd: nand: omap2: Remove omap_nand_platform_data (diff)
downloadlinux-f67ae488fd64029460551e34d403aa64562faea0.tar.xz
linux-f67ae488fd64029460551e34d403aa64562faea0.zip
mtd: nand: omap2: Do not assign omap_nand_info to platform drvdata
commit 67ce04bf2746 ("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>
Diffstat (limited to 'drivers/mtd/nand/omap2.c')
-rw-r--r--drivers/mtd/nand/omap2.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 01368a8f9e3f..a97c1aeed55e 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -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");