mtd: nand: gpmi: get correct free oob space
authorHan Xu <han.xu@nxp.com>
Tue, 12 Apr 2016 22:06:33 +0000 (17:06 -0500)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 23 Sep 2016 07:35:16 +0000 (09:35 +0200)
commit1848a057a29f74d2a0517c5123a281002739ba31
tree02514e0082e7755ad96423afd2ebe06948669977
parent3fe4f900bf3061b3994c56eea497d8a839241277
mtd: nand: gpmi: get correct free oob space

change the way to calculate pagesize to get correct free oob space for
legacy_set_geometry function.

Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/gpmi-nand/gpmi-nand.c