mtd: nand: omap2: Do not assign omap_nand_info to platform drvdata
authorLadislav Michl <ladis@linux-mips.org>
Tue, 10 Oct 2017 13:32:45 +0000 (15:32 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Sat, 14 Oct 2017 13:21:05 +0000 (15:21 +0200)
commitf67ae488fd64029460551e34d403aa64562faea0
tree97f9db5cc4c980cb7651be1c7961698daba0fbee
parent086c321ec57bfda5b15f3553e7def33302955852
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>
drivers/mtd/nand/omap2.c